summaryrefslogtreecommitdiff
path: root/plugins/CrashDumper/src/crshdmp.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-03-12 18:36:38 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-03-12 18:36:38 +0300
commita70058727e91037ca532a52decbcc8c3aea2d03e (patch)
tree01a995fe17b4e80e7445948f086d72e2555d1998 /plugins/CrashDumper/src/crshdmp.cpp
parent83f3e1dee4b5b3a27a2ca5c177b4ecfd1b02411f (diff)
CrashDumper:
- fixes #1186 (Hide DbChecker from VersionInfo); - massive code cleaning; - version bump
Diffstat (limited to 'plugins/CrashDumper/src/crshdmp.cpp')
-rw-r--r--plugins/CrashDumper/src/crshdmp.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/CrashDumper/src/crshdmp.cpp b/plugins/CrashDumper/src/crshdmp.cpp
index d775326ea1..64d10f56f6 100644
--- a/plugins/CrashDumper/src/crshdmp.cpp
+++ b/plugins/CrashDumper/src/crshdmp.cpp
@@ -67,7 +67,7 @@ INT_PTR StoreVersionInfoToFile(WPARAM, LPARAM lParam)
CreateDirectoryTreeW(VersionInfoFolder);
wchar_t path[MAX_PATH];
- mir_snwprintf(path, TEXT("%s\\VersionInfo.txt"), VersionInfoFolder);
+ mir_snwprintf(path, L"%s\\VersionInfo.txt", VersionInfoFolder);
HANDLE hDumpFile = CreateFile(path, GENERIC_WRITE, 0, nullptr, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, nullptr);
if (hDumpFile != INVALID_HANDLE_VALUE) {
@@ -143,7 +143,7 @@ INT_PTR OpenUrl(WPARAM wParam, LPARAM)
{
switch (wParam) {
case 0:
- ShellExecute(nullptr, TEXT("explore"), CrashLogFolder, nullptr, nullptr, SW_SHOW);
+ ShellExecute(nullptr, L"explore", CrashLogFolder, nullptr, nullptr, SW_SHOW);
break;
case 1:
@@ -184,7 +184,7 @@ INT_PTR ServiceModeLaunch(WPARAM, LPARAM)
static int FoldersPathChanged(WPARAM, LPARAM)
{
- FOLDERSGETDATA fgd = { 0 };
+ FOLDERSGETDATA fgd = {};
fgd.cbSize = sizeof(FOLDERSGETDATA);
fgd.nMaxPathSize = MAX_PATH;
fgd.flags = FF_TCHAR;
@@ -198,7 +198,7 @@ static int FoldersPathChanged(WPARAM, LPARAM)
int OptionsInit(WPARAM wParam, LPARAM)
{
- OPTIONSDIALOGPAGE odp = { 0 };
+ OPTIONSDIALOGPAGE odp = {};
odp.position = -790000000;
odp.hInstance = hInst;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS);
@@ -366,10 +366,9 @@ extern "C" int __declspec(dllexport) Load(void)
profname = Utils_ReplaceVarsW(L"%miranda_profilename%.dat");
profpath = Utils_ReplaceVarsW(L"%miranda_userdata%");
if (catchcrashes && !needrestart)
- mir_snwprintf(CrashLogFolder, TEXT("%s\\CrashLog"), profpath);
+ mir_snwprintf(CrashLogFolder, L"%s\\CrashLog", profpath);
wcsncpy_s(VersionInfoFolder, profpath, _TRUNCATE);
-
HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded);
HookEvent(ME_OPT_INITIALISE, OptionsInit);
HookEvent(ME_SYSTEM_PRESHUTDOWN, PreShutdown);