Commit in reactos/ntoskrnl/ps on MAIN
thread.c+4-11.132 -> 1.133
- 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.

reactos/ntoskrnl/ps
thread.c 1.132 -> 1.133
diff -u -r1.132 -r1.133
--- thread.c	15 Aug 2004 16:39:10 -0000	1.132
+++ thread.c	19 Aug 2004 21:56:17 -0000	1.133
@@ -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 @@
 		PiWakeupReaperThread();
 	      }
 #endif
+
+	    MmUpdatePageDir(PsGetCurrentProcess(),(PVOID)CurrentThread->ThreadsProcess, sizeof(EPROCESS));
+
 	    KiArchContextSwitch(&CurrentThread->Tcb, &OldThread->Tcb);
 	    return;
 	  }
CVSspam 0.2.8