Driver: Rename fort_mem_exec_alloc() to fort_mem_alloc_exec()

This commit is contained in:
Nodir Temirkhodjaev 2022-06-24 18:28:40 +05:00
parent a9c70ab466
commit 8bed596585
2 changed files with 3 additions and 3 deletions

View File

@ -18,11 +18,11 @@
#if defined(FORT_WIN7_COMPAT)
# define fort_mem_alloc(size, tag) ExAllocatePoolWithTag(NonPagedPoolNx, (size), (tag))
# define fort_mem_exec_alloc(size, tag) ExAllocatePoolWithTag(NonPagedPoolExecute, (size), (tag))
# define fort_mem_alloc_exec(size, tag) ExAllocatePoolWithTag(NonPagedPoolExecute, (size), (tag))
#else
# define fort_mem_alloc(size, tag) \
ExAllocatePool2(POOL_FLAG_UNINITIALIZED | POOL_FLAG_NON_PAGED, (size), (tag))
# define fort_mem_exec_alloc(size, tag) \
# define fort_mem_alloc_exec(size, tag) \
ExAllocatePool2(POOL_FLAG_UNINITIALIZED | POOL_FLAG_NON_PAGED_EXECUTE, (size), (tag))
#endif

View File

@ -385,7 +385,7 @@ FORT_API NTSTATUS LoadModuleFromMemory(PLOADEDMODULE pModule, const PUCHAR lpDat
#endif
/* Allocate the region */
PUCHAR pImage = fort_mem_exec_alloc(imageSize, FORT_LOADER_POOL_TAG);
PUCHAR pImage = fort_mem_alloc_exec(imageSize, FORT_LOADER_POOL_TAG);
if (pImage == NULL)
return STATUS_NO_MEMORY;