https://git.reactos.org/?p=reactos.git;a=commitdiff;h=642c795531c33885701ef…
commit 642c795531c33885701ef56d1f6b2066384131fb
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Sun Nov 26 11:31:43 2023 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Thu Nov 30 13:01:14 2023 +0200
[KERNEL32] Fix 64-bit bug in SetProcessAffinityMask
---
dll/win32/kernel32/client/proc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dll/win32/kernel32/client/proc.c b/dll/win32/kernel32/client/proc.c
index 9f1f1c1a4a0..b88212b3c59 100644
--- a/dll/win32/kernel32/client/proc.c
+++ b/dll/win32/kernel32/client/proc.c
@@ -900,7 +900,7 @@ SetProcessAffinityMask(IN HANDLE hProcess,
Status = NtSetInformationProcess(hProcess,
ProcessAffinityMask,
(PVOID)&dwProcessAffinityMask,
- sizeof(DWORD));
+ sizeof(dwProcessAffinityMask));
if (!NT_SUCCESS(Status))
{
/* Handle failure */