From 86731b86485eee95fd5060232c3d171257607db6 Mon Sep 17 00:00:00 2001 From: Pranav Sharma Date: Fri, 18 Mar 2022 15:34:30 -0700 Subject: replace deprecated ExAllocatePool API --- network/wlan/WDI/PLATFORM/NDIS6/new.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/network/wlan/WDI/PLATFORM/NDIS6/new.cpp b/network/wlan/WDI/PLATFORM/NDIS6/new.cpp index 5b7eaf2b..7f6b201e 100644 --- a/network/wlan/WDI/PLATFORM/NDIS6/new.cpp +++ b/network/wlan/WDI/PLATFORM/NDIS6/new.cpp @@ -39,16 +39,11 @@ void* __cdecl operator new( --*/ { - PVOID pData = ExAllocatePoolWithTag( NonPagedPoolNx, Size, POOL_TAG ); + PVOID pData = ExAllocatePool2( POOL_FLAG_NON_PAGED, Size, POOL_TAG ); UNREFERENCED_PARAMETER( AllocationContext ); NT_ASSERT( AllocationContext == 0 ); - if ( pData != NULL ) - { - RtlZeroMemory( pData, Size ); - } - return pData; } -- cgit v1.3.1