Return failure if native function failed. one more test passes

svn path=/trunk/; revision=17236
This commit is contained in:
Alex Ionescu 2005-08-09 08:54:56 +00:00
parent 61ffdb3516
commit 1d1e963067

View file

@ -530,7 +530,10 @@ SetThreadAffinityMask(HANDLE hThread,
&AffinityMask,
sizeof(KAFFINITY));
if (!NT_SUCCESS(Status))
{
SetLastErrorByStatus(Status);
ThreadBasic.AffinityMask = 0;
}
return(ThreadBasic.AffinityMask);
}