From ffcb2dbeda705de22a8aa43740266ae4a9ae72b2 Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Wed, 17 Jun 2026 11:12:11 +0200 Subject: [PATCH] Correct initial StackCount value to reflect underlying type width --- xtoskrnl/ke/kprocess.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtoskrnl/ke/kprocess.cc b/xtoskrnl/ke/kprocess.cc index c559052..ac89d46 100644 --- a/xtoskrnl/ke/kprocess.cc +++ b/xtoskrnl/ke/kprocess.cc @@ -149,7 +149,7 @@ KE::KProcess::InitializeProcess(IN OUT PKPROCESS Process, Process->DirectoryTable[1] = DirectoryTable[1]; /* Set the initial stack count and process quantum */ - Process->StackCount = MAXSHORT; + Process->StackCount = MAXULONG_PTR; Process->Quantum = THREAD_QUANTUM; /* Set IOPM offset */