From 2fad5d068478a22a512b9b504cc10369fd865d07 Mon Sep 17 00:00:00 2001 From: Maurice Heumann Date: Mon, 22 Aug 2022 10:23:21 +0200 Subject: [PATCH] Update memory.cpp --- src/driver/memory.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/driver/memory.cpp b/src/driver/memory.cpp index b8c9bd7..a462074 100644 --- a/src/driver/memory.cpp +++ b/src/driver/memory.cpp @@ -102,7 +102,10 @@ namespace memory void* allocate_non_paged_memory(const size_t size) { - void* memory = ExAllocatePool2(NonPagedPool, size, 'MOMO'); +#pragma warning(push) +#pragma warning(disable: 4996) + void* memory = ExAllocatePoolWithTag(NonPagedPool, size, 'MOMO'); +#pragma warning(pop) if (memory) { RtlSecureZeroMemory(memory, size);