From 7e93d98888a3fdb19fdfdff2167d8679e5116fe5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 28 Mar 2019 12:32:45 +0300 Subject: unused translations removed --- plugins/MsgPopup/src/main.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'plugins/MsgPopup/src') 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); - } } } } -- cgit v1.2.3