[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
This commit is contained in:
Aleksey Bragin
2009-10-15 18:36:35 +00:00
parent c199e1e3ee
commit 8774094ea9
+2
View 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;