[PATCH] browseui: progressdlg: don't leak the event
Mikołaj Zalewski
mikolaj at zalewski.pl
Fri Jun 27 12:28:03 CDT 2008
---
dlls/browseui/progressdlg.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/browseui/progressdlg.c b/dlls/browseui/progressdlg.c
index c65a097..3cd522c 100644
--- a/dlls/browseui/progressdlg.c
+++ b/dlls/browseui/progressdlg.c
@@ -323,8 +323,9 @@ static HRESULT WINAPI ProgressDialog_StartProgressDialog(IProgressDialog *iface,
hThread = CreateThread(NULL, 0, dialog_thread, ¶ms, 0, NULL);
WaitForSingleObject(params.hEvent, INFINITE);
-
+ CloseHandle(params.hEvent);
CloseHandle(hThread);
+
This->hwndDisabledParent = NULL;
if (hwndParent && (dwFlags & PROGDLG_MODAL))
{
--
1.5.4
--------------050307040601050700050804--
More information about the wine-patches
mailing list