From 143395e386ebef489267467a1d67cf805262fab4 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Fri, 25 Apr 2003 18:37:44 +0000 Subject: [PATCH] KeSetAffinityThread stub added (returns STATUS_SUCCESS and thus VMWare network driver won't crash ReactOS) svn path=/trunk/; revision=4579 --- reactos/ntoskrnl/ps/thread.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/ps/thread.c b/reactos/ntoskrnl/ps/thread.c index 714c216512a..f28bf86bd86 100644 --- a/reactos/ntoskrnl/ps/thread.c +++ b/reactos/ntoskrnl/ps/thread.c @@ -1,4 +1,4 @@ -/* $Id: thread.c,v 1.108 2003/04/10 23:14:47 hyperion Exp $ +/* $Id: thread.c,v 1.109 2003/04/25 18:37:44 fireball Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -504,6 +504,17 @@ KeSetPriorityThread (PKTHREAD Thread, KPRIORITY Priority) return(OldPriority); } +NTSTATUS STDCALL +KeSetAffinityThread(PKTHREAD Thread, + PVOID AfMask) +/* + * Sets thread's affinity + */ +{ + return STATUS_SUCCESS; // FIXME: Use function below + //return ZwSetInformationThread(handle, ThreadAffinityMask,,sizeof(KAFFINITY)); +} + NTSTATUS STDCALL NtAlertResumeThread(IN HANDLE ThreadHandle,