[NTOS]
[reactos.git] / reactos / ntoskrnl / mm / ARM3 / procsup.c
index b7b7344..9a0ae20 100644 (file)
@@ -699,7 +699,7 @@ MmCreatePeb(IN PEPROCESS Process,
         //
         // Session ID
         //
         //
         // Session ID
         //
-        MmGetSessionId(Process);
+        if (Process->Session) Peb->SessionId = MmGetSessionId(Process);
     }
     _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
     {
     }
     _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
     {