[NTOSKRNL]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Fri, 18 Feb 2011 15:59:32 +0000 (15:59 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Fri, 18 Feb 2011 15:59:32 +0000 (15:59 +0000)
Alex messed up.
Fix by Patch by Rafal Harabien, <rafalh1992 AT o2 DOT pl>

svn path=/trunk/; revision=50806

reactos/ntoskrnl/ps/state.c

index e64f227..62664f9 100644 (file)
@@ -510,7 +510,7 @@ NtQueueApcThread(IN HANDLE ThreadHandle,
                                        ExGetPreviousMode(),
                                        (PVOID)&Thread,
                                        NULL);
-    if (NT_SUCCESS(Status)) return Status;
+    if (!NT_SUCCESS(Status)) return Status;
 
     /* Check if this is a System Thread */
     if (Thread->SystemThread)