Update Domito.Memory.cpp

This commit is contained in:
Benjamin Höglinger-Stelzer 2023-07-02 19:58:59 +02:00
parent 0320cd419e
commit 33fcee10f7

View File

@ -11,7 +11,12 @@
static PVOID NTAPI DomitoDefaultMalloc(size_t s) static PVOID NTAPI DomitoDefaultMalloc(size_t s)
{ {
#pragma warning(disable:4996) #pragma warning(disable:4996)
return ExAllocatePoolWithTag(NonPagedPool, s, DOMITO_POOL_TAG); PVOID mem = ExAllocatePoolWithTag(NonPagedPool, s, DOMITO_POOL_TAG);
if (mem)
{
RtlZeroMemory(mem, s);
}
return mem;
#pragma warninf(default:4996) #pragma warninf(default:4996)
} }