We really shouldn't crash on systems this command is not fully supported on. Windows 9x will always respond with a 1.

This commit is contained in:
Charles Lohr
2005-02-12 05:32:35 +00:00
parent 462e471648
commit 0051938177
+11 -1
View File
@@ -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 ));
}
}