summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/modules.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mir_core/modules.cpp b/src/mir_core/modules.cpp
index 0644fb3414..853205ba01 100644
--- a/src/mir_core/modules.cpp
+++ b/src/mir_core/modules.cpp
@@ -126,6 +126,9 @@ MIR_CORE_DLL(HANDLE) CreateHookableEvent(const char *name)
MIR_CORE_DLL(int) DestroyHookableEvent(HANDLE hEvent)
{
+ if (hEvent == NULL)
+ return 1;
+
mir_cslock lck(csHooks);
int idx;