From ae8f62940ed22ec74d6b97b947b3e52933cb8e81 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Fri, 30 Dec 2011 21:53:54 +0100 Subject: [PATCH] appwiz.cpl: Fix handle leak. --- dlls/appwiz.cpl/addons.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/appwiz.cpl/addons.c b/dlls/appwiz.cpl/addons.c index 9a410b820b7..4729ebb20bc 100644 --- a/dlls/appwiz.cpl/addons.c +++ b/dlls/appwiz.cpl/addons.c @@ -500,7 +500,7 @@ static INT_PTR CALLBACK installer_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARA ShowWindow(GetDlgItem(hwnd, ID_DWL_PROGRESS), SW_SHOW); EnableWindow(GetDlgItem(hwnd, ID_DWL_INSTALL), 0); EnableWindow(GetDlgItem(hwnd, IDCANCEL), 0); /* FIXME */ - CreateThread(NULL, 0, download_proc, NULL, 0, NULL); + CloseHandle( CreateThread(NULL, 0, download_proc, NULL, 0, NULL)); return FALSE; } }