Fixed a handle leak.

This commit is contained in:
Alexandre Julliard 2005-10-20 13:21:39 +00:00
parent 18e909e650
commit 4a0a099c11
1 changed files with 2 additions and 0 deletions

View File

@ -360,6 +360,8 @@ static DWORD WINAPI ThreadFunc( LPVOID info )
if( !r )
goto end;
WaitForSingleObject( pi.hProcess, INFINITE );
CloseHandle( pi.hProcess );
CloseHandle( pi.hThread );
end:
if( bTempfile )