From 60eddf565732fba67b051990f95c1471710cd8f9 Mon Sep 17 00:00:00 2001 From: Michael Martin Date: Tue, 27 Apr 2010 13:35:52 +0000 Subject: [PATCH] [ntoskrnl\mm] - Fix a continuous loop bug in MiWriteProtectSystemImage. svn path=/trunk/; revision=47048 --- reactos/ntoskrnl/mm/sysldr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reactos/ntoskrnl/mm/sysldr.c b/reactos/ntoskrnl/mm/sysldr.c index 1fb86f95d01..fcecf3c8da5 100644 --- a/reactos/ntoskrnl/mm/sysldr.c +++ b/reactos/ntoskrnl/mm/sysldr.c @@ -2154,6 +2154,10 @@ MiWriteProtectSystemImage(IN PVOID ImageBase) { /* Same protection, so merge the request */ CurrentAddress = BaseAddress + Size - 1; + + /* Next */ + Sections--; + Section++; continue; }