diff options
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/modules.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_core/src/modules.cpp b/src/mir_core/src/modules.cpp index 86bff8146f..5f2986bf67 100644 --- a/src/mir_core/src/modules.cpp +++ b/src/mir_core/src/modules.cpp @@ -354,8 +354,8 @@ MIR_CORE_DLL(int) UnhookEvent(HANDLE hHook) if (hHook == NULL) return 0; - int hookId = (int)hHook >> 16; - int subscriberId = ((int)hHook & 0xFFFF) - 1; + int hookId = (INT_PTR)hHook >> 16; + int subscriberId = ((INT_PTR)hHook & 0xFFFF) - 1; mir_cslock lck(csHooks); |