From 5b1f9c57057dc5c29305c60cefd7b4c6288e873b Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Sat, 26 Mar 2005 21:16:42 +0000 Subject: [PATCH] Fix return value of SwitchToThread. svn path=/trunk/; revision=14336 --- reactos/lib/kernel32/thread/thread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/lib/kernel32/thread/thread.c b/reactos/lib/kernel32/thread/thread.c index c273c65fd84..0f59d8fe5a5 100644 --- a/reactos/lib/kernel32/thread/thread.c +++ b/reactos/lib/kernel32/thread/thread.c @@ -330,9 +330,9 @@ GetTeb(VOID) BOOL STDCALL SwitchToThread(VOID) { - NTSTATUS errCode; - errCode = NtYieldExecution(); - return TRUE; + NTSTATUS Status; + Status = NtYieldExecution(); + return Status != STATUS_NO_YIELD_PERFORMED; }