From ed5bb0fad1a79a47774223e739902679d049299a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 6 Jul 2012 11:47:56 +0000 Subject: valid Core plugins' processing during dynamic load/unload git-svn-id: http://svn.miranda-ng.org/main/trunk@789 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_core/modules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mir_core/modules.cpp') 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); -- cgit v1.2.3