mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-05 10:26:40 +00:00
WIN32: Fix leaked handles in CreateProcess
This commit is contained in:
parent
b1bd75a083
commit
091b6ebe39
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user