From 8ffc368a0ce003eb0c285749198b4cb9e361ff64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sat, 21 Sep 2013 23:21:24 +0000 Subject: [PATCH] [NTOS] Set the session ID to the process' associated PEB (introduced in revision 43476, the code erratically disappeared in revision 57011 when Alex fixed sessions). svn path=/trunk/; revision=60299 --- reactos/ntoskrnl/mm/ARM3/procsup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/mm/ARM3/procsup.c b/reactos/ntoskrnl/mm/ARM3/procsup.c index b7b7344e4d2..9a0ae20da46 100644 --- a/reactos/ntoskrnl/mm/ARM3/procsup.c +++ b/reactos/ntoskrnl/mm/ARM3/procsup.c @@ -699,7 +699,7 @@ MmCreatePeb(IN PEPROCESS Process, // // Session ID // - MmGetSessionId(Process); + if (Process->Session) Peb->SessionId = MmGetSessionId(Process); } _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) {