diff options
author | George Hazan <ghazan@miranda.im> | 2021-12-26 20:31:39 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-12-26 20:31:39 +0300 |
commit | cddcd7483a7c472598af098e759e5d309024f606 (patch) | |
tree | b0a227d6e087c41958cc84d27bc323353248aae5 /plugins/MsgPopup/src/main.cpp | |
parent | 1039b2829a264280493ba0fa979214fe024dc70c (diff) |
DWORD -> uint32_t
Diffstat (limited to 'plugins/MsgPopup/src/main.cpp')
-rw-r--r-- | plugins/MsgPopup/src/main.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/MsgPopup/src/main.cpp b/plugins/MsgPopup/src/main.cpp index bad9fed4d3..6f30cf7dae 100644 --- a/plugins/MsgPopup/src/main.cpp +++ b/plugins/MsgPopup/src/main.cpp @@ -133,10 +133,9 @@ void HookOnImport(HMODULE hModule, char *lpszImpModName, PVOID lpOrigFunc, PVOID if (*ppfn != lpOrigFunc)
continue;
- DWORD oldProtect;
-
g_mod++;
+ DWORD oldProtect;
if (!VirtualProtect((LPVOID)ppfn, sizeof(void*), PAGE_EXECUTE_READWRITE, &oldProtect)) {
if (!g_HookError)
g_HookError = TRUE;
@@ -201,10 +200,10 @@ void LoadConfig() mir_snprintf(szNameTO, "TO%d", indx);
options.FG[indx] = g_plugin.getDword(szNameFG, optionsDefault.FG[indx]);
options.BG[indx] = g_plugin.getDword(szNameBG, optionsDefault.BG[indx]);
- options.Timeout[indx] = g_plugin.getDword(szNameTO, (DWORD)optionsDefault.Timeout[indx]);
+ options.Timeout[indx] = g_plugin.getDword(szNameTO, (uint32_t)optionsDefault.Timeout[indx]);
}
- options.Sound = g_plugin.getByte("Sound", (DWORD)optionsDefault.Sound);
+ options.Sound = g_plugin.getByte("Sound", (uint32_t)optionsDefault.Sound);
}
/////////////////////////////////////////////////////////////////////////////////////////
|