From f61c6e1fbd06fc3b0df44ca18402885c88581596 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 28 May 2017 10:22:30 +0000 Subject: [PATCH] [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 svn path=/trunk/; revision=74688 --- reactos/ntoskrnl/mm/ARM3/expool.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/mm/ARM3/expool.c b/reactos/ntoskrnl/mm/ARM3/expool.c index 503f5ea5b8c..73a229d4311 100644 --- a/reactos/ntoskrnl/mm/ARM3/expool.c +++ b/reactos/ntoskrnl/mm/ARM3/expool.c @@ -2589,11 +2589,18 @@ ExAllocatePoolWithTagPriority(IN POOL_TYPE PoolType, 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; } /*