Update memory.cpp

This commit is contained in:
Maurice Heumann 2022-08-22 10:12:15 +02:00 committed by GitHub
parent 6253a44356
commit 620de17a01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ namespace memory
void* allocate_non_paged_memory(const size_t size)
{
void* memory = ExAllocatePoolWithTag(NonPagedPool, size, 'MOMO');
void* memory = ExAllocatePool2(NonPagedPool, size, 'MOMO');
if (memory)
{
RtlSecureZeroMemory(memory, size);