mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-25 06:44:59 +00:00
WinUpdater: Properly account for failure in WaitForPID
This commit is contained in:
parent
d355abaf0c
commit
a00dfeecf0
1 changed files with 5 additions and 2 deletions
|
@ -251,8 +251,11 @@ void Sleep(int sleep)
|
||||||
void WaitForPID(u32 pid)
|
void WaitForPID(u32 pid)
|
||||||
{
|
{
|
||||||
HANDLE parent_handle = OpenProcess(SYNCHRONIZE, FALSE, static_cast<DWORD>(pid));
|
HANDLE parent_handle = OpenProcess(SYNCHRONIZE, FALSE, static_cast<DWORD>(pid));
|
||||||
WaitForSingleObject(parent_handle, INFINITE);
|
if (parent_handle)
|
||||||
CloseHandle(parent_handle);
|
{
|
||||||
|
WaitForSingleObject(parent_handle, INFINITE);
|
||||||
|
CloseHandle(parent_handle);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetVisible(bool visible)
|
void SetVisible(bool visible)
|
||||||
|
|
Loading…
Add table
Reference in a new issue