mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 14:39:01 +01:00
WinUpdater: Properly account for failure in WaitForPID
This commit is contained in:
parent
d355abaf0c
commit
a00dfeecf0
@ -251,9 +251,12 @@ void Sleep(int sleep)
|
||||
void WaitForPID(u32 pid)
|
||||
{
|
||||
HANDLE parent_handle = OpenProcess(SYNCHRONIZE, FALSE, static_cast<DWORD>(pid));
|
||||
if (parent_handle)
|
||||
{
|
||||
WaitForSingleObject(parent_handle, INFINITE);
|
||||
CloseHandle(parent_handle);
|
||||
}
|
||||
}
|
||||
|
||||
void SetVisible(bool visible)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user