1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Fix eap->hoikas self-patch

This commit is contained in:
2013-12-23 17:03:46 -05:00
parent 7915f21019
commit 52427c2032

View File

@ -83,7 +83,10 @@ static bool IsPatcherRunning()
static void WaitForOldPatcher()
{
HANDLE mut = CreatePatcherMutex();
WaitForSingleObject(mut, INFINITE);
DWORD wait = WaitForSingleObject(mut, 0);
while (wait != WAIT_OBJECT_0) // :( :( :(
wait = WaitForSingleObject(mut, 100);
Sleep(1000); // :(
}
// ===================================================