summaryrefslogtreecommitdiff
path: root/plugins/MsgPopup/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-03-28 12:32:45 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-03-28 12:32:53 +0300
commit7e93d98888a3fdb19fdfdff2167d8679e5116fe5 (patch)
treed4de566c8c71b38e17202ee09a6784adce96efa4 /plugins/MsgPopup/src
parentff316f638e130d9a931e27b75b6ceda4f72c2a60 (diff)
unused translations removed
Diffstat (limited to 'plugins/MsgPopup/src')
-rw-r--r--plugins/MsgPopup/src/main.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/plugins/MsgPopup/src/main.cpp b/plugins/MsgPopup/src/main.cpp
index a9df9d1142..c1b31f4ae7 100644
--- a/plugins/MsgPopup/src/main.cpp
+++ b/plugins/MsgPopup/src/main.cpp
@@ -138,20 +138,13 @@ void HookOnImport(HMODULE hModule, char *lpszImpModName, PVOID lpOrigFunc, PVOID
g_mod++;
if (!VirtualProtect((LPVOID)ppfn, sizeof(void*), PAGE_EXECUTE_READWRITE, &oldProtect)) {
- if (!g_HookError) {
- wchar_t buf[200];
-
+ if (!g_HookError)
g_HookError = TRUE;
- mir_snwprintf(buf, TranslateT("VirtualProtect failed. Code %d\nTry to call the author"), GetLastError());
- prevMessageBox(nullptr, buf, TranslateT("Error"), MB_OK);
- }
}
*(PVOID*)ppfn = lpNewFunc;
if (*(PVOID*)ppfn != lpNewFunc) {
- if (!g_HookError2) {
+ if (!g_HookError2)
g_HookError2 = TRUE;
- prevMessageBox(nullptr, TranslateT("Hmm. Something goes wrong. I can't write into the memory.\nAnd as you can see, there are no any exception raised...\nTry to call the author"), TranslateT("Error"), MB_OK);
- }
}
}
}