Warnings and memory allocation fixes
This commit is contained in:
@@ -11,13 +11,13 @@
|
||||
static PVOID NTAPI DomitoDefaultMalloc(size_t s)
|
||||
{
|
||||
#pragma warning(disable:4996)
|
||||
PVOID mem = ExAllocatePoolWithTag(NonPagedPool, s, DOMITO_POOL_TAG);
|
||||
const PVOID mem = ExAllocatePoolWithTag(PagedPool, s, DOMITO_POOL_TAG);
|
||||
if (mem)
|
||||
{
|
||||
RtlZeroMemory(mem, s);
|
||||
}
|
||||
return mem;
|
||||
#pragma warninf(default:4996)
|
||||
#pragma warning(default:4996)
|
||||
}
|
||||
|
||||
static void NTAPI DomitoDefaultFree(PVOID p)
|
||||
|
||||
Reference in New Issue
Block a user