Update Domito.Memory.cpp
This commit is contained in:
parent
0320cd419e
commit
33fcee10f7
@ -11,7 +11,12 @@
|
||||
static PVOID NTAPI DomitoDefaultMalloc(size_t s)
|
||||
{
|
||||
#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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user