mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-14 17:28:07 +00:00
os_process_join on win32 -> CloseHandle of remaining process handle
This commit is contained in:
@@ -1072,6 +1072,10 @@ os_process_join(OS_Handle handle, U64 endt_us, U64 *exit_code_out)
|
||||
DWORD sleep_ms = os_w32_sleep_ms_from_endt_us(endt_us);
|
||||
DWORD result = WaitForSingleObject(process, sleep_ms);
|
||||
B32 process_joined = (result == WAIT_OBJECT_0);
|
||||
if(process_joined)
|
||||
{
|
||||
CloseHandle(process);
|
||||
}
|
||||
if(process_joined && exit_code_out)
|
||||
{
|
||||
DWORD exit_code = 0;
|
||||
|
||||
Reference in New Issue
Block a user