MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / BTCpuNotifyMemoryProtect

Function BTCpuNotifyMemoryProtect

Source/Windows/WOW64/Module.cpp:978–987  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

976}
977
978void BTCpuNotifyMemoryProtect(void* Address, SIZE_T Size, ULONG NewProt, BOOL After, ULONG Status) {
979 if (!After) {
980 ThreadCreationMutex.lock();
981 } else {
982 if (!Status) {
983 InvalidationTracker->HandleMemoryProtectionNotification(reinterpret_cast<uint64_t>(Address), static_cast<uint64_t>(Size), NewProt);
984 }
985 ThreadCreationMutex.unlock();
986 }
987}
988
989void BTCpuNotifyMemoryFree(void* Address, SIZE_T Size, ULONG FreeType, BOOL After, ULONG Status) {
990 if (!After) {

Callers

nothing calls this directly

Calls 3

lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected