[ros-diffs] [fireball] 50109: [NTOS] - Fix a typo in region size calculation of special memory areas, which unbreaks OllyDbg & co. Thanks Michael Martin for the hint. See issue #5692 for more details.

fireball at svn.reactos.org fireball at svn.reactos.org
Wed Dec 22 22:18:33 UTC 2010


Author: fireball
Date: Wed Dec 22 22:18:32 2010
New Revision: 50109

URL: http://svn.reactos.org/svn/reactos?rev=50109&view=rev
Log:
[NTOS]
- Fix a typo in region size calculation of special memory areas, which unbreaks OllyDbg & co. Thanks Michael Martin for the hint.
See issue #5692 for more details.

Modified:
    trunk/reactos/ntoskrnl/mm/ARM3/virtual.c

Modified: trunk/reactos/ntoskrnl/mm/ARM3/virtual.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/virtual.c?rev=50109&r1=50108&r2=50109&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/virtual.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/virtual.c [iso-8859-1] Wed Dec 22 22:18:32 2010
@@ -2379,7 +2379,7 @@
             MemoryInfo.AllocationBase = (PCHAR)MM_HIGHEST_VAD_ADDRESS + 1;
             MemoryInfo.State = MEM_RESERVE;
             MemoryInfo.Protect = PAGE_NOACCESS;
-            MemoryInfo.RegionSize = (ULONG_PTR)MemoryInfo.AllocationBase - (ULONG_PTR)Address;
+            MemoryInfo.RegionSize = (ULONG_PTR)MM_HIGHEST_USER_ADDRESS + 1 - (ULONG_PTR)Address;
         }
 
         /* Return the data, NtQueryInformation already probed it*/




More information about the Ros-diffs mailing list