diff options
Diffstat (limited to 'plugins/MsgPopup/src')
-rw-r--r-- | plugins/MsgPopup/src/main.cpp | 4 |
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)
|