- Fix MiSyncThreadProcessViews in KeInitThread too as requested by Alex

svn path=/trunk/; revision=35310
This commit is contained in:
Stefan Ginsberg 2008-08-13 18:00:23 +00:00
parent bfd08e980b
commit e82f1c91a7

View file

@ -813,7 +813,8 @@ KeInitThread(IN OUT PKTHREAD Thread,
/* Make sure that we are in the right page directory */
MiSyncThreadProcessViews(Process,
(PVOID)Thread->StackLimit,
KERNEL_STACK_SIZE);
Thread->LargeStack ?
KERNEL_LARGE_STACK_SIZE : KERNEL_STACK_SIZE);
MiSyncThreadProcessViews(Process, Thread, sizeof(ETHREAD));
/* Enter SEH to avoid crashes due to user mode */