Return failure if native function failed. one more test passes
Modified: trunk/reactos/lib/kernel32/thread/thread.c
_____
Modified: trunk/reactos/lib/kernel32/thread/thread.c
--- trunk/reactos/lib/kernel32/thread/thread.c 2005-08-09 08:50:57 UTC
(rev 17235)
+++ trunk/reactos/lib/kernel32/thread/thread.c 2005-08-09 08:54:56 UTC
(rev 17236)
@@ -530,7 +530,10 @@
&AffinityMask,
sizeof(KAFFINITY));
if (!NT_SUCCESS(Status))
+ {
SetLastErrorByStatus(Status);
+ ThreadBasic.AffinityMask = 0;
+ }
return(ThreadBasic.AffinityMask);
}