projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c199e1e
)
[kernel32]
author
Aleksey Bragin
<aleksey@reactos.org>
Thu, 15 Oct 2009 18:36:35 +0000
(18:36 +0000)
committer
Aleksey 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
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/kernel32/misc/utils.c
b/reactos/dll/win32/kernel32/misc/utils.c
index
b9adb28
..
cebd500
100644
(file)
--- 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;