mirror of
https://github.com/tnodir/fort
synced 2024-11-15 08:46:03 +00:00
Driver: Rename fort_mem_exec_alloc() to fort_mem_alloc_exec()
This commit is contained in:
parent
a9c70ab466
commit
8bed596585
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user