- Fixed a crash which occurs on thread switching if the pde's for the new

process structure are not established within the address space of the old thread.

svn path=/trunk/; revision=10606
This commit is contained in:
Hartmut Birr 2004-08-19 21:56:17 +00:00
parent 67781c7635
commit 9112fef190

View file

@ -1,4 +1,4 @@
/* $Id: thread.c,v 1.132 2004/08/15 16:39:10 chorns Exp $
/* $Id: thread.c,v 1.133 2004/08/19 21:56:17 hbirr Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -429,6 +429,9 @@ VOID PsDispatchThreadNoLock (ULONG NewThreadStatus)
PiWakeupReaperThread();
}
#endif
MmUpdatePageDir(PsGetCurrentProcess(),(PVOID)CurrentThread->ThreadsProcess, sizeof(EPROCESS));
KiArchContextSwitch(&CurrentThread->Tcb, &OldThread->Tcb);
return;
}