From: Aleksey Bragin Date: Thu, 15 Oct 2009 18:36:35 +0000 (+0000) Subject: [kernel32] X-Git-Tag: ReactOS-0.3.11~471 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=8774094ea99b1b3d5e892c3d7d5d911ea4413f9f;ds=sidebyside [kernel32] - Initialize PreviousStackBase/Limit to NULL in BasepCreateStack. Previously this bug was hidden because those values were ignored by the kernel. svn path=/trunk/; revision=43485 --- diff --git a/reactos/dll/win32/kernel32/misc/utils.c b/reactos/dll/win32/kernel32/misc/utils.c index b9adb287a8f..cebd500232b 100644 --- a/reactos/dll/win32/kernel32/misc/utils.c +++ b/reactos/dll/win32/kernel32/misc/utils.c @@ -257,6 +257,8 @@ BasepCreateStack(HANDLE hProcess, /* Now set up some basic Initial TEB Parameters */ InitialTeb->AllocatedStackBase = (PVOID)Stack; InitialTeb->StackBase = (PVOID)(Stack + StackReserve); + InitialTeb->PreviousStackBase = NULL; + InitialTeb->PreviousStackLimit = NULL; /* Update the Stack Position */ Stack += StackReserve - StackCommit;