Update Domito.Memory.cpp
This commit is contained in:
parent
0320cd419e
commit
33fcee10f7
@ -1,8 +1,8 @@
|
|||||||
/* __ __ __ __ _
|
/* __ __ __ __ _
|
||||||
* | \/ |___ _ __ ___ _ _ _ _ | \/ |__ _ _ _ __ _ __ _ ___ _ __ ___ _ _| |_
|
* | \/ |___ _ __ ___ _ _ _ _ | \/ |__ _ _ _ __ _ __ _ ___ _ __ ___ _ _| |_
|
||||||
* | |\/| / -_) ' \/ _ \ '_| || | | |\/| / _` | ' \/ _` / _` / -_) ' \/ -_) ' \ _|
|
* | |\/| / -_) ' \/ _ \ '_| || | | |\/| / _` | ' \/ _` / _` / -_) ' \/ -_) ' \ _|
|
||||||
* |_| |_\___|_|_|_\___/_| \_, | |_| |_\__,_|_||_\__,_\__, \___|_|_|_\___|_||_\__|
|
* |_| |_\___|_|_|_\___/_| \_, | |_| |_\__,_|_||_\__,_\__, \___|_|_|_\___|_||_\__|
|
||||||
* |__/ |___/
|
* |__/ |___/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "Domito.Internal.h"
|
#include "Domito.Internal.h"
|
||||||
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user