Commit 0427cf08 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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

parent b0e8143d
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment