Mikołaj Zalewski : browseui: progressdlg: don' t leak the event.
Module: wine Branch: master Commit: 659542aafcc8468b8f7b7fb73ef187f5abee7f60 URL: http://source.winehq.org/git/wine.git/?a=commit;h=659542aafcc8468b8f7b7fb73e... Author: Mikołaj Zalewski <mikolaj(a)zalewski.pl> Date: Fri Jun 27 19:28:03 2008 +0200 browseui: progressdlg: don't leak the event. --- 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)) {
participants (1)
-
Alexandre Julliard