[ros-diffs] [jgardou] 55643: [NTOSKRNL/MM] - fix returned value in case of failure in MiFindEmptyAddressRangeDownTree

jgardou at svn.reactos.org jgardou at svn.reactos.org
Thu Feb 16 17:22:55 UTC 2012


Author: jgardou
Date: Thu Feb 16 17:22:54 2012
New Revision: 55643

URL: http://svn.reactos.org/svn/reactos?rev=55643&view=rev
Log:
[NTOSKRNL/MM]
  - fix returned value in case of failure in MiFindEmptyAddressRangeDownTree

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

Modified: trunk/reactos/ntoskrnl/mm/ARM3/vadnode.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/vadnode.c?rev=55643&r1=55642&r2=55643&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/vadnode.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/vadnode.c [iso-8859-1] Thu Feb 16 17:22:54 2012
@@ -380,7 +380,7 @@
     /* Compute page length, make sure the boundary address is valid */
     Length = ROUND_TO_PAGES(Length);
     PageCount = Length >> PAGE_SHIFT;
-    if ((BoundaryAddress + 1) < Length) return STATUS_NO_MEMORY;
+    if ((BoundaryAddress + 1) < Length) return TableFoundNode;
 
     /* Check if the table is empty */
     if (Table->NumberGenericTableElements == 0)




More information about the Ros-diffs mailing list