mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 09:24:11 +00:00
We need an address within the stack in order for freeing it to work properly.
svn path=/trunk/; revision=30700
This commit is contained in:
parent
517c73e082
commit
3e39927a8f
|
@ -836,7 +836,7 @@ KeInitThread(IN OUT PKTHREAD Thread,
|
||||||
if (AllocatedStack)
|
if (AllocatedStack)
|
||||||
{
|
{
|
||||||
/* Delete the stack */
|
/* Delete the stack */
|
||||||
MmDeleteKernelStack(Thread->StackBase, FALSE);
|
MmDeleteKernelStack((PVOID)Thread->StackLimit, FALSE);
|
||||||
Thread->InitialStack = NULL;
|
Thread->InitialStack = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -878,7 +878,7 @@ NTAPI
|
||||||
KeUninitThread(IN PKTHREAD Thread)
|
KeUninitThread(IN PKTHREAD Thread)
|
||||||
{
|
{
|
||||||
/* Delete the stack */
|
/* Delete the stack */
|
||||||
MmDeleteKernelStack(Thread->StackBase, FALSE);
|
MmDeleteKernelStack((PVOID)Thread->StackLimit, FALSE);
|
||||||
Thread->InitialStack = NULL;
|
Thread->InitialStack = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue