From 89cd163cca002d039a2dc42a08dd91ee7308e563 Mon Sep 17 00:00:00 2001 From: Pavel Nedev Date: Thu, 26 Nov 2015 02:32:34 +0200 Subject: [PATCH] Fix crash issue while moving Find In Files progress window Close #1187, Fixes #1172 Fix crash issue when moving the Find In Files progress window while the search finishes. --- PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index bf32c3f4c..7fa9b78ae 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -3096,7 +3096,7 @@ void Progress::close() { if (_hwnd) { - ::SendMessage(_hwnd, WM_CLOSE, 0, 0); + ::PostMessage(_hwnd, WM_CLOSE, 0, 0); _hwnd = NULL; ::WaitForSingleObject(_hThread, INFINITE);