summaryrefslogtreecommitdiff
path: root/plugins/SpellChecker/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-10-01 22:21:05 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-10-01 22:21:05 +0000
commit540a743bc38827110833afbde2d232b1c5e2fd10 (patch)
tree77d16ade03396bf45f0e4c2ea226ccd9199e9827 /plugins/SpellChecker/src
parentea1e6bd24cdac5293c3e663a874d91f87745afe3 (diff)
crash fix for closing edit window using a hotkey
git-svn-id: http://svn.miranda-ng.org/main/trunk@6294 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SpellChecker/src')
-rw-r--r--plugins/SpellChecker/src/utils.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/SpellChecker/src/utils.cpp b/plugins/SpellChecker/src/utils.cpp
index b0e341d52b..78027c7ca6 100644
--- a/plugins/SpellChecker/src/utils.cpp
+++ b/plugins/SpellChecker/src/utils.cpp
@@ -566,6 +566,8 @@ LRESULT CALLBACK EditProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
}
LRESULT ret = mir_callNextSubclass(hwnd, EditProc, msg, wParam, lParam);
+ if ((dlgit = dialogs.find(hwnd)) == dialogs.end())
+ return ret;
switch(msg) {
case WM_KEYDOWN: