appwiz.cpl: Fix leak of thread and process handles in UninstallProgram.
This commit is contained in:
parent
b0e8143db6
commit
0427cf087b
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue