mirror of
https://github.com/momo5502/hypervisor.git
synced 2026-10-18 00:53:31 +00:00
Update memory.cpp
This commit is contained in:
1 parent
6253a44356
commit
620de17a01
1 file changed
+1
-1
@@ -102,7 +102,7 @@ namespace memory
|
||||
|
||||
void* allocate_non_paged_memory(const size_t size)
|
||||
{
|
||||
void* memory = ExAllocatePoolWithTag(NonPagedPool, size, 'MOMO');
|
||||
void* memory = ExAllocatePool2(NonPagedPool, size, 'MOMO');
|
||||
if (memory)
|
||||
{
|
||||
RtlSecureZeroMemory(memory, size);
|
||||
|
||||
Reference in new issue
Block a user