browseui: Fix handle leak

Andrew Talbot andrew.talbot at talbotville.com
Tue Apr 15 16:11:26 CDT 2008


Changelog:
    browseui: Fix handle leak.

diff --git a/dlls/browseui/progressdlg.c b/dlls/browseui/progressdlg.c
index c5465a3..c65a097 100644
--- a/dlls/browseui/progressdlg.c
+++ b/dlls/browseui/progressdlg.c
@@ -324,6 +324,7 @@ static HRESULT WINAPI ProgressDialog_StartProgressDialog(IProgressDialog *iface,
     hThread = CreateThread(NULL, 0, dialog_thread, &params, 0, NULL);
     WaitForSingleObject(params.hEvent, INFINITE);
 
+    CloseHandle(hThread);
     This->hwndDisabledParent = NULL;
     if (hwndParent && (dwFlags & PROGDLG_MODAL))
     {



More information about the wine-patches mailing list