From 23d907e3d4080cbdfdeac3d9a84af7327a398af8 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 12 Feb 2005 06:21:29 +0000 Subject: [PATCH] remove ill-formatted comment (I feel like I've asked him to space comments readably, like the rest of the code, half a dozen times). The function is probably just returning ERROR_CALL_NOT_IMPLEMENTED. If it's returning some other error, find out what it is and add it to the conditional. Don't just break out without understanding the logic of the rest of the function. --- stepmania/src/arch/Threads/Threads_Win32.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/stepmania/src/arch/Threads/Threads_Win32.cpp b/stepmania/src/arch/Threads/Threads_Win32.cpp index 69af35bee3..628b9f9b77 100644 --- a/stepmania/src/arch/Threads/Threads_Win32.cpp +++ b/stepmania/src/arch/Threads/Threads_Win32.cpp @@ -298,6 +298,7 @@ static bool PortableSignalObjectAndWait( HANDLE hObjectToSignal, HANDLE hObjectT /* The docs aren't particular about what this does, but it should never happen. */ FAIL_M( "WAIT_ABANDONED" ); + case 1: /* bogus Win98 return value */ case WAIT_FAILED: if( GetLastError() == ERROR_CALL_NOT_IMPLEMENTED ) { @@ -308,16 +309,6 @@ 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;