appwiz.cpl: Fix leak of thread and process handles in UninstallProgram.

This commit is contained in:
Rob Shearman 2008-08-17 18:26:21 +01:00 committed by Alexandre Julliard
parent b0e8143db6
commit 0427cf087b
1 changed files with 3 additions and 0 deletions

View File

@ -404,8 +404,11 @@ static void UninstallProgram(int id)
if (res)
{
CloseHandle(info.hThread);
/* wait for the process to exit */
WaitForSingleObject(info.hProcess, INFINITE);
CloseHandle(info.hProcess);
}
else
{