From 52427c20325febe79ae387b26f36a63e4f09f14e Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 23 Dec 2013 17:03:46 -0500 Subject: [PATCH] Fix eap->hoikas self-patch --- Sources/Plasma/Apps/plUruLauncher/winmain.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/Plasma/Apps/plUruLauncher/winmain.cpp b/Sources/Plasma/Apps/plUruLauncher/winmain.cpp index 35841143..571c5dee 100644 --- a/Sources/Plasma/Apps/plUruLauncher/winmain.cpp +++ b/Sources/Plasma/Apps/plUruLauncher/winmain.cpp @@ -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); // :( } // ===================================================