[ntoskrnl\mm]
authorMichael Martin <michael.martin@reactos.org>
Tue, 27 Apr 2010 13:35:52 +0000 (13:35 +0000)
committerMichael Martin <michael.martin@reactos.org>
Tue, 27 Apr 2010 13:35:52 +0000 (13:35 +0000)
- Fix a continuous loop bug in MiWriteProtectSystemImage.

svn path=/trunk/; revision=47048

reactos/ntoskrnl/mm/sysldr.c

index 1fb86f9..fcecf3c 100644 (file)
@@ -2154,6 +2154,10 @@ MiWriteProtectSystemImage(IN PVOID ImageBase)
         {
             /* Same protection, so merge the request */
             CurrentAddress = BaseAddress + Size - 1;
         {
             /* Same protection, so merge the request */
             CurrentAddress = BaseAddress + Size - 1;
+        
+            /* Next */
+            Sections--;
+            Section++;
             continue;
         }
         
             continue;
         }