| 869 | } |
| 870 | |
| 871 | void NotifyMemoryProtect(void* Address, SIZE_T Size, ULONG NewProt, BOOL After, NTSTATUS Status) { |
| 872 | if (!InvalidationTracker || !GetCPUArea().ThreadState()) { |
| 873 | return; |
| 874 | } |
| 875 | |
| 876 | if (!After) { |
| 877 | ThreadCreationMutex.lock(); |
| 878 | } else { |
| 879 | if (!Status) { |
| 880 | InvalidationTracker->HandleMemoryProtectionNotification(reinterpret_cast<uint64_t>(Address), static_cast<uint64_t>(Size), NewProt); |
| 881 | } |
| 882 | ThreadCreationMutex.unlock(); |
| 883 | } |
| 884 | } |
| 885 | |
| 886 | NTSTATUS NotifyMapViewOfSection(void* Unk1, void* Address, void* Unk2, SIZE_T Size, ULONG AllocType, ULONG Prot) { |
| 887 | if (!InvalidationTracker || !GetCPUArea().ThreadState()) { |
nothing calls this directly
no test coverage detected