diff options
Diffstat (limited to 'src/mir_core/modules.cpp')
-rw-r--r-- | src/mir_core/modules.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_core/modules.cpp b/src/mir_core/modules.cpp index f87c7bb192..67cf6ce267 100644 --- a/src/mir_core/modules.cpp +++ b/src/mir_core/modules.cpp @@ -157,7 +157,7 @@ MIR_CORE_DLL(int) SetHookDefaultForHookableEvent(HANDLE hEvent, MIRANDAHOOK pfnH MIR_CORE_DLL(int) CallPluginEventHook(HINSTANCE hInst, HANDLE hEvent, WPARAM wParam, LPARAM lParam)
{
THook* p = (THook*)hEvent;
- if (p == NULL)
+ if (p == NULL || hInst == NULL)
return -1;
mir_cslock lck(p->csHook);
|