mirror of
https://github.com/reactos/reactos.git
synced 2024-07-03 03:04:22 +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)
|
||||
{
|
||||
/* Delete the stack */
|
||||
MmDeleteKernelStack(Thread->StackBase, FALSE);
|
||||
MmDeleteKernelStack((PVOID)Thread->StackLimit, FALSE);
|
||||
Thread->InitialStack = NULL;
|
||||
}
|
||||
}
|
||||
|
@ -878,7 +878,7 @@ NTAPI
|
|||
KeUninitThread(IN PKTHREAD Thread)
|
||||
{
|
||||
/* Delete the stack */
|
||||
MmDeleteKernelStack(Thread->StackBase, FALSE);
|
||||
MmDeleteKernelStack((PVOID)Thread->StackLimit, FALSE);
|
||||
Thread->InitialStack = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue