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);