WIN32: Fix leaked handles in CreateProcess

This commit is contained in:
SupSuper 2019-06-03 15:02:27 +01:00 committed by Filippos Karapetis
parent b1bd75a083
commit 091b6ebe39

View File

@ -145,8 +145,11 @@ bool OSystem_Win32::displayLogFile() {
NULL,
&startupInfo,
&processInformation);
if (result)
if (result) {
CloseHandle(processInformation.hProcess);
CloseHandle(processInformation.hThread);
return true;
}
return false;
}