summaryrefslogtreecommitdiff
path: root/plugins/MsgPopup/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-26 15:58:40 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-26 15:58:40 +0300
commitfcbb395dc7ff3edab972b6d4b27dbbfb3305f5d7 (patch)
tree8807aea6f2afce38b30ce60aa5ebf84a26992b73 /plugins/MsgPopup/src
parentaf2958f2e82cb68392983da6f7f69fa3cd0c5276 (diff)
PBYTE -> uint8_t*
Diffstat (limited to 'plugins/MsgPopup/src')
-rw-r--r--plugins/MsgPopup/src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MsgPopup/src/main.cpp b/plugins/MsgPopup/src/main.cpp
index c1b31f4ae7..bad9fed4d3 100644
--- a/plugins/MsgPopup/src/main.cpp
+++ b/plugins/MsgPopup/src/main.cpp
@@ -123,11 +123,11 @@ void HookOnImport(HMODULE hModule, char *lpszImpModName, PVOID lpOrigFunc, PVOID
return;
for (; pImportDesc->Name; pImportDesc++) {
- char *pszModName = (char *)((PBYTE)hModule + pImportDesc->Name);
+ char *pszModName = (char *)((uint8_t*)hModule + pImportDesc->Name);
if (mir_strcmpi(lpszImpModName, pszModName) != 0)
continue;
- PIMAGE_THUNK_DATA pThunk = (PIMAGE_THUNK_DATA)((PBYTE)hModule + pImportDesc->FirstThunk);
+ PIMAGE_THUNK_DATA pThunk = (PIMAGE_THUNK_DATA)((uint8_t*)hModule + pImportDesc->FirstThunk);
for (; pThunk->u1.Function; pThunk++) {
PVOID* ppfn = (PVOID*)&pThunk->u1.Function;
if (*ppfn != lpOrigFunc)