mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 20:50:29 +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;
|
CStringW status;
|
||||||
status.Format(IDS_SEARCH_FILES_FOUND, uTotalFound);
|
status.Format(IDS_SEARCH_FILES_FOUND, uTotalFound);
|
||||||
::PostMessageW(data->hwnd, WM_SEARCH_UPDATE_STATUS, 0, (LPARAM) StrDupW(status.GetBuffer()));
|
::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;
|
delete data;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue