summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Mir_core/modules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Mir_core/modules.cpp b/plugins/Mir_core/modules.cpp
index 88dd79a138..f87c7bb192 100644
--- a/plugins/Mir_core/modules.cpp
+++ b/plugins/Mir_core/modules.cpp
@@ -106,7 +106,7 @@ MIR_CORE_DLL(HANDLE) CreateHookableEvent(const char *name)
int idx;
if ((idx = hooks.getIndex((THook*)name)) != -1)
- return NULL;
+ return hooks[idx];
THook* newItem = (THook*)mir_alloc(sizeof(THook));
strncpy(newItem->name, name, sizeof(newItem->name)); newItem->name[ MAXMODULELABELLENGTH-1 ] = 0;