mirror of
				https://github.com/momo5502/hypervisor.git
				synced 2025-10-31 02:27:15 +00:00 
			
		
		
		
	Update memory.cpp
This commit is contained in:
		| @@ -102,7 +102,10 @@ namespace memory | |||||||
|  |  | ||||||
| 	void* allocate_non_paged_memory(const size_t size) | 	void* allocate_non_paged_memory(const size_t size) | ||||||
| 	{ | 	{ | ||||||
| 		void* memory = ExAllocatePool2(NonPagedPool, size, 'MOMO'); | #pragma warning(push) | ||||||
|  | #pragma warning(disable: 4996) | ||||||
|  | 		void* memory = ExAllocatePoolWithTag(NonPagedPool, size, 'MOMO'); | ||||||
|  | #pragma warning(pop) | ||||||
| 		if (memory) | 		if (memory) | ||||||
| 		{ | 		{ | ||||||
| 			RtlSecureZeroMemory(memory, size); | 			RtlSecureZeroMemory(memory, size); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user