Updated name of XbProtect

This commit is contained in:
ergo720 2018-03-26 15:35:04 +02:00
parent 696d6109ea
commit 324e894f34
2 changed files with 3 additions and 3 deletions

View File

@ -1715,7 +1715,7 @@ xboxkrnl::NTSTATUS VMManager::XbAllocateVirtualMemory(VAddr* addr, ULONG ZeroBit
VAddr TempAddr = AlignedCapturedBase; VAddr TempAddr = AlignedCapturedBase;
size_t TempSize = AlignedCapturedSize; size_t TempSize = AlignedCapturedSize;
DWORD TempProtect = Protect; DWORD TempProtect = Protect;
XbProtect(&TempAddr, &TempSize, &TempProtect); XbVirtualProtect(&TempAddr, &TempSize, &TempProtect);
} }
DbgPrintf("VMEM: XbAllocateVirtualMemory resulting range : 0x%.8X - 0x%.8X\n", AlignedCapturedBase, DbgPrintf("VMEM: XbAllocateVirtualMemory resulting range : 0x%.8X - 0x%.8X\n", AlignedCapturedBase,
@ -1886,7 +1886,7 @@ xboxkrnl::NTSTATUS VMManager::XbFreeVirtualMemory(VAddr* addr, size_t* Size, DWO
RETURN(status); RETURN(status);
} }
xboxkrnl::NTSTATUS VMManager::XbProtect(VAddr* addr, size_t* Size, DWORD* Protect) xboxkrnl::NTSTATUS VMManager::XbVirtualProtect(VAddr* addr, size_t* Size, DWORD* Protect)
{ {
LOG_FUNC_BEGIN LOG_FUNC_BEGIN
LOG_FUNC_ARG(*addr) LOG_FUNC_ARG(*addr)

View File

@ -160,7 +160,7 @@ class VMManager : public PhysicalMemory
// xbox implementation of NtFreeVirtualMemory // xbox implementation of NtFreeVirtualMemory
xboxkrnl::NTSTATUS XbFreeVirtualMemory(VAddr* addr, size_t* Size, DWORD FreeType); xboxkrnl::NTSTATUS XbFreeVirtualMemory(VAddr* addr, size_t* Size, DWORD FreeType);
// xbox implementation of NtProtectVirtualMemory // xbox implementation of NtProtectVirtualMemory
xboxkrnl::NTSTATUS XbProtect(VAddr* addr, size_t* Size, DWORD* Protect); xboxkrnl::NTSTATUS XbVirtualProtect(VAddr* addr, size_t* Size, DWORD* Protect);
// xbox implementation of NtQueryVirtualMemory // xbox implementation of NtQueryVirtualMemory
xboxkrnl::NTSTATUS VirtualMemoryStatistics(VAddr addr, xboxkrnl::PMEMORY_BASIC_INFORMATION memory_statistics); xboxkrnl::NTSTATUS VirtualMemoryStatistics(VAddr addr, xboxkrnl::PMEMORY_BASIC_INFORMATION memory_statistics);