mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-11-26 23:34:01 +08:00
Update buffer.c
This commit is contained in:
parent
b61d265408
commit
18b93df55d
@ -217,6 +217,12 @@ static PMEMORY_BLOCK GetMemoryBlock(LPVOID pOrigin)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (pBlock == NULL)
|
||||
{
|
||||
pBlock=(PMEMORY_BLOCK)VirtualAlloc(
|
||||
(LPVOID)minAddr, MEMORY_BLOCK_SIZE, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);
|
||||
}
|
||||
#else
|
||||
// In x86 mode, a memory block can be placed anywhere.
|
||||
pBlock = (PMEMORY_BLOCK)VirtualAlloc(
|
||||
|
Loading…
Reference in New Issue
Block a user