MCPcopy Create free account
hub / github.com/Inori/GPCS4 / VMFree

Function VMFree

GPCS4/Platform/PlatMemory.cpp:170–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void VMFree(void* pAddress)
171{
172 // MSDN:
173 // If the dwFreeType parameter is MEM_RELEASE, this parameter(dwSize) must be 0(zero).
174 // The function frees the entire region that is reserved in the initial allocation call to VirtualAlloc.
175 VirtualFree(pAddress, 0, MEM_RELEASE);
176}
177
178bool VMProtect(void* pAddress, size_t nSize,
179 VM_PROTECT_FLAG nNewProtect, VM_PROTECT_FLAG* pOldProtect)

Callers 3

memoryUnmapMethod · 0.85
allocateInternalMethod · 0.85
operator()Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected