From 7a488944494b8a4e1d13d2591de7751bc3aa5045 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 6 Jul 2012 06:07:11 +0000 Subject: event handle to return on duplicate event registration git-svn-id: http://svn.miranda-ng.org/main/trunk@782 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Mir_core/modules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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; -- cgit v1.2.3