Index: thread/thread.c =================================================================== --- thread/thread.c (revision 14332) +++ thread/thread.c (working copy) @@ -330,9 +330,9 @@ BOOL STDCALL SwitchToThread(VOID) { - NTSTATUS errCode; - errCode = NtYieldExecution(); - return TRUE; + NTSTATUS Status; + Status = NtYieldExecution(); + return Status != STATUS_NO_YIELD_PERFORMED; }