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:
Art Yerkes 2007-11-23 17:33:29 +00:00
parent 517c73e082
commit 3e39927a8f

View file

@ -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;
}