mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:52:59 +00:00
- Fix MiSyncThreadProcessViews to hack-sync the next thread's ETHREAD too (spotted by Alex)
svn path=/trunk/; revision=35342
This commit is contained in:
parent
c335a12872
commit
9f65ee2cec
1 changed files with 7 additions and 5 deletions
|
@ -28,12 +28,14 @@ VOID
|
||||||
FASTCALL
|
FASTCALL
|
||||||
MiSyncThreadProcessViews(IN PKTHREAD NextThread)
|
MiSyncThreadProcessViews(IN PKTHREAD NextThread)
|
||||||
{
|
{
|
||||||
|
PVOID Process = PsGetCurrentProcess();
|
||||||
|
PETHREAD Thread = CONTAINING_RECORD(NextThread, ETHREAD, Tcb);
|
||||||
|
|
||||||
/* Hack Sync because Mm is broken */
|
/* Hack Sync because Mm is broken */
|
||||||
MmUpdatePageDir(PsGetCurrentProcess(),
|
MmUpdatePageDir(Process, Thread, sizeof(ETHREAD));
|
||||||
((PETHREAD)NextThread)->ThreadsProcess,
|
MmUpdatePageDir(Process, Thread->ThreadsProcess, sizeof(EPROCESS));
|
||||||
sizeof(EPROCESS));
|
MmUpdatePageDir(Process,
|
||||||
MmUpdatePageDir(PsGetCurrentProcess(),
|
(PVOID)Thread->Tcb.StackLimit,
|
||||||
(PVOID)((PETHREAD)NextThread)->Tcb.StackLimit,
|
|
||||||
NextThread->LargeStack ?
|
NextThread->LargeStack ?
|
||||||
KERNEL_LARGE_STACK_SIZE : KERNEL_STACK_SIZE);
|
KERNEL_LARGE_STACK_SIZE : KERNEL_STACK_SIZE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue