browseui: progressdlg: don't leak the event.

oldstable
Mikołaj Zalewski 2008-06-27 19:28:03 +02:00 committed by Alexandre Julliard
parent 1bec9bb440
commit 659542aafc
1 changed files with 2 additions and 1 deletions

View File

@ -323,8 +323,9 @@ static HRESULT WINAPI ProgressDialog_StartProgressDialog(IProgressDialog *iface,
hThread = CreateThread(NULL, 0, dialog_thread, &params, 0, NULL);
WaitForSingleObject(params.hEvent, INFINITE);
CloseHandle(params.hEvent);
CloseHandle(hThread);
This->hwndDisabledParent = NULL;
if (hwndParent && (dwFlags & PROGDLG_MODAL))
{