diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-12 18:36:38 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-12 18:36:38 +0300 |
commit | a70058727e91037ca532a52decbcc8c3aea2d03e (patch) | |
tree | 01a995fe17b4e80e7445948f086d72e2555d1998 /plugins/CrashDumper/src/ui.cpp | |
parent | 83f3e1dee4b5b3a27a2ca5c177b4ecfd1b02411f (diff) |
CrashDumper:
- fixes #1186 (Hide DbChecker from VersionInfo);
- massive code cleaning;
- version bump
Diffstat (limited to 'plugins/CrashDumper/src/ui.cpp')
-rw-r--r-- | plugins/CrashDumper/src/ui.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/CrashDumper/src/ui.cpp b/plugins/CrashDumper/src/ui.cpp index 65fa95377b..d09ac5b809 100644 --- a/plugins/CrashDumper/src/ui.cpp +++ b/plugins/CrashDumper/src/ui.cpp @@ -69,7 +69,7 @@ INT_PTR CALLBACK DlgProcView(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara CHARFORMAT2 chf;
chf.cbSize = sizeof(chf);
SendDlgItemMessage(hwndDlg, IDC_VIEWVERSIONINFO, EM_GETCHARFORMAT, SCF_DEFAULT, (LPARAM)&chf);
- mir_wstrcpy(chf.szFaceName, TEXT("Courier New"));
+ mir_wstrcpy(chf.szFaceName, L"Courier New");
SendDlgItemMessage(hwndDlg, IDC_VIEWVERSIONINFO, EM_SETCHARFORMAT, SCF_ALL, (LPARAM)&chf);
CMStringW buffer;
@@ -279,8 +279,8 @@ LRESULT CALLBACK DlgProcPopup(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) case 3:
wchar_t path[MAX_PATH];
- mir_snwprintf(path, TEXT("%s\\VersionInfo.txt"), VersionInfoFolder);
- ShellExecute(nullptr, TEXT("open"), path, nullptr, nullptr, SW_SHOW);
+ mir_snwprintf(path, L"%s\\VersionInfo.txt", VersionInfoFolder);
+ ShellExecute(nullptr, L"open", path, nullptr, nullptr, SW_SHOW);
break;
}
@@ -297,7 +297,7 @@ LRESULT CALLBACK DlgProcPopup(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) void ShowMessage(int type, const wchar_t* format, ...)
{
- POPUPDATAT pi = { 0 };
+ POPUPDATAT pi = {};
va_list va;
va_start(va, format);
@@ -306,12 +306,12 @@ void ShowMessage(int type, const wchar_t* format, ...) va_end(va);
if (ServiceExists(MS_POPUP_ADDPOPUPT)) {
- mir_wstrcpy(pi.lptzContactName, TEXT(PluginName));
+ mir_wstrcpy(pi.lptzContactName, _A2W(PluginName));
pi.lchIcon = LoadIconEx(IDI_VI);
pi.PluginWindowProc = DlgProcPopup;
pi.PluginData = (void*)type;
PUAddPopupT(&pi);
}
- else MessageBox(nullptr, pi.lptzText, TEXT(PluginName), MB_OK | MB_ICONINFORMATION);
+ else MessageBox(nullptr, pi.lptzText, _A2W(PluginName), MB_OK | MB_ICONINFORMATION);
}
|