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.
This commit is contained in:
Pavel Nedev 2015-11-26 02:32:34 +02:00 committed by Don Ho
parent d8f6ac67ea
commit 89cd163cca

View File

@ -3096,7 +3096,7 @@ void Progress::close()
{ {
if (_hwnd) if (_hwnd)
{ {
::SendMessage(_hwnd, WM_CLOSE, 0, 0); ::PostMessage(_hwnd, WM_CLOSE, 0, 0);
_hwnd = NULL; _hwnd = NULL;
::WaitForSingleObject(_hThread, INFINITE); ::WaitForSingleObject(_hThread, INFINITE);