Author: pschweitzer
Date: Sun May 28 10:22:30 2017
New Revision: 74688

URL: http://svn.reactos.org/svn/reactos?rev=74688&view=rev
Log:
[NTOSKRNL:MM]
Only warn for unimplemented in ExAllocatePoolWithTagPriority() when memory 
allocation fails. For the rest, the caller has the memory it asked for.
Side note: we could also warn when caller wants to use special pool.

CORE-13334
CORE-11327

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

Modified: trunk/reactos/ntoskrnl/mm/ARM3/expool.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/expool.c?rev=74688&r1=74687&r2=74688&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/expool.c     [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/expool.c     [iso-8859-1] Sun May 28 
10:22:30 2017
@@ -2589,11 +2589,18 @@
                               IN ULONG Tag,
                               IN EX_POOL_PRIORITY Priority)
 {
+    PVOID Buffer;
+
     //
     // Allocate the pool
     //
-    UNIMPLEMENTED;
-    return ExAllocatePoolWithTag(PoolType, NumberOfBytes, Tag);
+    Buffer = ExAllocatePoolWithTag(PoolType, NumberOfBytes, Tag);
+    if (Buffer == NULL)
+    {
+        UNIMPLEMENTED;
+    }
+
+    return Buffer;
 }
 
 /*


Reply via email to