mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 20:43:18 +00:00
- 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:
parent
67781c7635
commit
9112fef190
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue