mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
WinUpdater: Properly account for failure in WaitForPID
This commit is contained in:
@ -251,8 +251,11 @@ void Sleep(int sleep)
|
||||
void WaitForPID(u32 pid)
|
||||
{
|
||||
HANDLE parent_handle = OpenProcess(SYNCHRONIZE, FALSE, static_cast<DWORD>(pid));
|
||||
WaitForSingleObject(parent_handle, INFINITE);
|
||||
CloseHandle(parent_handle);
|
||||
if (parent_handle)
|
||||
{
|
||||
WaitForSingleObject(parent_handle, INFINITE);
|
||||
CloseHandle(parent_handle);
|
||||
}
|
||||
}
|
||||
|
||||
void SetVisible(bool visible)
|
||||
|
Reference in New Issue
Block a user