Author: arty
Date: Fri Nov 23 20:33:29 2007
New Revision: 30700
URL:
http://svn.reactos.org/svn/reactos?rev=30700&view=rev
Log:
We need an address within the stack in order for freeing it to work properly.
Modified:
trunk/reactos/ntoskrnl/ke/thrdobj.c
Modified: trunk/reactos/ntoskrnl/ke/thrdobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/thrdobj.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/thrdobj.c (original)
+++ trunk/reactos/ntoskrnl/ke/thrdobj.c Fri Nov 23 20:33:29 2007
@@ -836,7 +836,7 @@
if (AllocatedStack)
{
/* Delete the stack */
- MmDeleteKernelStack(Thread->StackBase, FALSE);
+ MmDeleteKernelStack((PVOID)Thread->StackLimit, FALSE);
Thread->InitialStack = NULL;
}
}
@@ -878,7 +878,7 @@
KeUninitThread(IN PKTHREAD Thread)
{
/* Delete the stack */
- MmDeleteKernelStack(Thread->StackBase, FALSE);
+ MmDeleteKernelStack((PVOID)Thread->StackLimit, FALSE);
Thread->InitialStack = NULL;
}