https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2a33aed7cf63a4c1ee379…
commit 2a33aed7cf63a4c1ee3799cba63342d77d8a99d8
Author: Justin Miller <justinmiller100(a)gmail.com>
AuthorDate: Sat Mar 26 22:18:31 2022 -0700
Commit: George Bișoc <george.bisoc(a)reactos.org>
CommitDate: Wed Dec 28 21:09:41 2022 +0100
[NTOS] Increment ActiveProcessors accurately
---
ntoskrnl/ke/i386/kiinit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ntoskrnl/ke/i386/kiinit.c b/ntoskrnl/ke/i386/kiinit.c
index b0af4c05d53..a83afe72c70 100644
--- a/ntoskrnl/ke/i386/kiinit.c
+++ b/ntoskrnl/ke/i386/kiinit.c
@@ -547,7 +547,7 @@ KiInitializeKernel(IN PKPROCESS InitProcess,
InitThread->State = Running;
InitThread->Affinity = 1 << Number;
InitThread->WaitIrql = DISPATCH_LEVEL;
- InitProcess->ActiveProcessors = 1 << Number;
+ InitProcess->ActiveProcessors |= 1 << Number;
/* HACK for MmUpdatePageDir */
((PETHREAD)InitThread)->ThreadsProcess = (PEPROCESS)InitProcess;