From 540a743bc38827110833afbde2d232b1c5e2fd10 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 1 Oct 2013 22:21:05 +0000 Subject: 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 --- plugins/SpellChecker/src/utils.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/SpellChecker/src') 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: -- cgit v1.2.3