Commit cda4fa29 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

ntoskrnl.exe: Implement KeRevertToUserAffinityThread() function.

parent 7d4f4783
......@@ -2485,7 +2485,7 @@ KAFFINITY WINAPI KeSetSystemAffinityThreadEx(KAFFINITY affinity)
*/
void WINAPI KeRevertToUserAffinityThread(void)
{
FIXME("() stub\n");
KeRevertToUserAffinityThreadEx(0);
}
void WINAPI KeRevertToUserAffinityThreadEx(KAFFINITY affinity)
......
......@@ -1766,7 +1766,17 @@ static void test_affinity(void)
mask = pKeSetSystemAffinityThreadEx(0x1);
ok(mask == mask_all_cpus, "Got unexpected mask %#lx.\n", mask);
pKeRevertToUserAffinityThreadEx(mask_all_cpus);
pKeRevertToUserAffinityThreadEx(0);
mask = pKeSetSystemAffinityThreadEx(0x1);
ok(!mask, "Got unexpected mask %#lx.\n", mask);
KeRevertToUserAffinityThread();
mask = pKeSetSystemAffinityThreadEx(0x1);
ok(!mask, "Got unexpected mask %#lx.\n", mask);
KeRevertToUserAffinityThread();
}
static NTSTATUS main_test(DEVICE_OBJECT *device, IRP *irp, IO_STACK_LOCATION *stack)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment