diff options
| -rw-r--r-- | network/wlan/WDI/PLATFORM/NDIS6/new.cpp | 7 |
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; } |
