summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-06 11:47:56 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-06 11:47:56 +0000
commited5bb0fad1a79a47774223e739902679d049299a (patch)
tree8929ea4f05f9228d94d274badfa100bac33a2a86 /src/mir_core
parent4ba37ef39d7f0458a8accf3e54ce98c1b8421ce0 (diff)
valid Core plugins' processing during dynamic load/unload
git-svn-id: http://svn.miranda-ng.org/main/trunk@789 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/modules.cpp2
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);