mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[SHELLFIND] Fix handle leak for stop event
This commit is contained in:
parent
dce5ccec4e
commit
fe5c76a034
1 changed files with 2 additions and 0 deletions
|
@ -224,7 +224,9 @@ DWORD WINAPI CFindFolder::SearchThreadProc(LPVOID lpParameter)
|
|||
CStringW status;
|
||||
status.Format(IDS_SEARCH_FILES_FOUND, uTotalFound);
|
||||
::PostMessageW(data->hwnd, WM_SEARCH_UPDATE_STATUS, 0, (LPARAM) StrDupW(status.GetBuffer()));
|
||||
::SendMessageW(data->hwnd, WM_SEARCH_STOP, 0, 0);
|
||||
|
||||
CloseHandle(data->hStopEvent);
|
||||
delete data;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue