From b971b4d659ba0035e77315cd1af9ac84852ccccf Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Mon, 28 Jul 2008 14:32:50 +0000 Subject: [PATCH] Dmitry Gorbachev - PDT of CSRSS has no entry for TCB of the thread, fix this problem. See issue #3591 for more details. svn path=/trunk/; revision=34901 --- reactos/ntoskrnl/ke/procobj.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/ntoskrnl/ke/procobj.c b/reactos/ntoskrnl/ke/procobj.c index 368e8c65346..87826d3dd74 100644 --- a/reactos/ntoskrnl/ke/procobj.c +++ b/reactos/ntoskrnl/ke/procobj.c @@ -451,6 +451,7 @@ KeAttachProcess(IN PKPROCESS Process) (PVOID)Thread->StackLimit, Thread->LargeStack ? KERNEL_STACK_SIZE : KERNEL_LARGE_STACK_SIZE); + MiSyncThreadProcessViews(Process, Thread, sizeof(ETHREAD)); /* Check if we're already in that process */ if (Thread->ApcState.Process == Process) return; @@ -580,6 +581,7 @@ KeStackAttachProcess(IN PKPROCESS Process, (PVOID)Thread->StackLimit, Thread->LargeStack ? KERNEL_STACK_SIZE : KERNEL_LARGE_STACK_SIZE); + MiSyncThreadProcessViews(Process, Thread, sizeof(ETHREAD)); /* Crash system if DPC is being executed! */ if (KeIsExecutingDpc())