[kernel32]
authorAleksey Bragin <aleksey@reactos.org>
Thu, 15 Oct 2009 18:36:35 +0000 (18:36 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Thu, 15 Oct 2009 18:36:35 +0000 (18:36 +0000)
- 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

reactos/dll/win32/kernel32/misc/utils.c

index b9adb28..cebd500 100644 (file)
@@ -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;