From 0051938177f78b67096e0f2be1093f107627e37b Mon Sep 17 00:00:00 2001 From: Charles Lohr Date: Sat, 12 Feb 2005 05:32:35 +0000 Subject: [PATCH] We really shouldn't crash on systems this command is not fully supported on. Windows 9x will always respond with a 1. --- stepmania/src/arch/Threads/Threads_Win32.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/stepmania/src/arch/Threads/Threads_Win32.cpp b/stepmania/src/arch/Threads/Threads_Win32.cpp index 256b2b0cbb..69af35bee3 100644 --- a/stepmania/src/arch/Threads/Threads_Win32.cpp +++ b/stepmania/src/arch/Threads/Threads_Win32.cpp @@ -308,11 +308,21 @@ static bool PortableSignalObjectAndWait( HANDLE hObjectToSignal, HANDLE hObjectT FAIL_M( werr_ssprintf(GetLastError(), "SignalObjectAndWait") ); + //Strange. Only (and always) occours on 9x. + //If you look at the error from it, it responds + //and says that the function is only available in + //win32 mode. + //This function is not fully supported in 9x. + //Program execution will continue properly if you + //break. + case 1: + break; + case WAIT_TIMEOUT: return false; default: - FAIL_M( "unknown" ); + FAIL_M( ssprintf("Unexpected code from SignalObjectAndWait: %d",ret )); } }