Skip to content
Permalink
Browse files

WinUpdater: Properly account for failure in WaitForPID

  • Loading branch information...
CookiePLMonster committed Jun 24, 2019
1 parent d355aba commit a00dfeecf0a7742366a32081d837fec1ebcead14
Showing with 5 additions and 2 deletions.
  1. +5 −2 Source/Core/WinUpdater/WinUI.cpp
@@ -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)

0 comments on commit a00dfee

Please sign in to comment.
You can’t perform that action at this time.