[NTOS:MM]
authorThomas Faber <thomas.faber@reactos.org>
Fri, 15 Apr 2016 18:30:18 +0000 (18:30 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Fri, 15 Apr 2016 18:30:18 +0000 (18:30 +0000)
- Fix list walk in MmGetSessionById

svn path=/trunk/; revision=71161

reactos/ntoskrnl/mm/ARM3/session.c

index b4fe388..117c40b 100644 (file)
@@ -1053,6 +1053,7 @@ MmGetSessionById(
     while (ListEntry != &MiSessionWsList)
     {
         Session = CONTAINING_RECORD(ListEntry, MM_SESSION_SPACE, WsListEntry);
     while (ListEntry != &MiSessionWsList)
     {
         Session = CONTAINING_RECORD(ListEntry, MM_SESSION_SPACE, WsListEntry);
+        ListEntry = ListEntry->Flink;
 
         /* Check if this is the session we are looking for */
         if (Session->SessionId == SessionId)
 
         /* Check if this is the session we are looking for */
         if (Session->SessionId == SessionId)