summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranav Sharma <[email protected]>2022-03-18 15:34:30 -0700
committerPranav Sharma <[email protected]>2022-03-18 15:34:30 -0700
commit86731b86485eee95fd5060232c3d171257607db6 (patch)
tree1cda4610fddcc5794657517d33534fac1afa3213
parentd3ec258921cfcef7b053b5a2c866330d43dd3f03 (diff)
replace deprecated ExAllocatePool API
-rw-r--r--network/wlan/WDI/PLATFORM/NDIS6/new.cpp7
1 files changed, 1 insertions, 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;
}