https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4c84e191fddda365b07aa9...
commit 4c84e191fddda365b07aa91a6732061f9a6f4d0f Author: Serge Gautherie 32623169+SergeGautherie@users.noreply.github.com AuthorDate: Wed Oct 16 22:38:01 2024 +0200 Commit: GitHub noreply@github.com CommitDate: Wed Oct 16 22:38:01 2024 +0200
[NTOS:KE/i386] KeStartAllProcessors(): ProcessorCount is a ULONG (#7455)
Let's be explicit.
Addendum to 516ccad (0.4.15-dev-7016). --- ntoskrnl/ke/i386/mproc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ntoskrnl/ke/i386/mproc.c b/ntoskrnl/ke/i386/mproc.c index 6e526d28636..63e7a748bd1 100644 --- a/ntoskrnl/ke/i386/mproc.c +++ b/ntoskrnl/ke/i386/mproc.c @@ -38,7 +38,7 @@ NTAPI KeStartAllProcessors(VOID) { PVOID KernelStack, DPCStack; - SIZE_T ProcessorCount = 0; + ULONG ProcessorCount = 0; PAPINFO APInfo;
while (TRUE) @@ -127,7 +127,7 @@ KeStartAllProcessors(VOID) KeLoaderBlock->Thread = (ULONG_PTR)&APInfo->Pcr.Prcb->IdleThread;
// Start the CPU - DPRINT("Attempting to Start a CPU with number: %u\n", ProcessorCount); + DPRINT("Attempting to Start a CPU with number: %lu\n", ProcessorCount); if (!HalStartNextProcessor(KeLoaderBlock, ProcessorState)) { break; @@ -152,5 +152,5 @@ KeStartAllProcessors(VOID) if (DPCStack) MmDeleteKernelStack(DPCStack, FALSE);
- DPRINT1("KeStartAllProcessors: Successful AP startup count is %u\n", ProcessorCount); + DPRINT1("KeStartAllProcessors: Successful AP startup count is %lu\n", ProcessorCount); }