mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Return failure if native function failed. one more test passes
svn path=/trunk/; revision=17236
This commit is contained in:
parent
61ffdb3516
commit
1d1e963067
1 changed files with 3 additions and 0 deletions
|
@ -530,7 +530,10 @@ SetThreadAffinityMask(HANDLE hThread,
|
|||
&AffinityMask,
|
||||
sizeof(KAFFINITY));
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastErrorByStatus(Status);
|
||||
ThreadBasic.AffinityMask = 0;
|
||||
}
|
||||
|
||||
return(ThreadBasic.AffinityMask);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue