Skip to content

Commit

Permalink
KeSetSystemGroupAffinityThread does not match kernel behavior
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Jowett <[email protected]>
  • Loading branch information
Alan Jowett committed Apr 20, 2024
1 parent 951d1a1 commit 2accbad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ke.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ KeSetSystemAffinityThreadEx(KAFFINITY affinity)
_usersim_thread_affinity.Mask = affinity;
if (KeGetCurrentIrql() < DISPATCH_LEVEL && SetThreadAffinityMask(GetCurrentThread(), affinity) == 0) {
unsigned long error = GetLastError();
KeBugCheckEx(0, error, 0, 0, 0);
return 0;
}
return (KAFFINITY)old_affinity.Mask;
}
Expand Down

0 comments on commit 2accbad

Please sign in to comment.