From 324e894f34803de6a694f25b9370350dd9230852 Mon Sep 17 00:00:00 2001 From: ergo720 Date: Mon, 26 Mar 2018 15:35:04 +0200 Subject: [PATCH] Updated name of XbProtect --- src/CxbxKrnl/VMManager.cpp | 4 ++-- src/CxbxKrnl/VMManager.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CxbxKrnl/VMManager.cpp b/src/CxbxKrnl/VMManager.cpp index 8df47d64d..5f03fcbf7 100644 --- a/src/CxbxKrnl/VMManager.cpp +++ b/src/CxbxKrnl/VMManager.cpp @@ -1715,7 +1715,7 @@ xboxkrnl::NTSTATUS VMManager::XbAllocateVirtualMemory(VAddr* addr, ULONG ZeroBit VAddr TempAddr = AlignedCapturedBase; size_t TempSize = AlignedCapturedSize; DWORD TempProtect = Protect; - XbProtect(&TempAddr, &TempSize, &TempProtect); + XbVirtualProtect(&TempAddr, &TempSize, &TempProtect); } 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); } -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_ARG(*addr) diff --git a/src/CxbxKrnl/VMManager.h b/src/CxbxKrnl/VMManager.h index abbb1df21..1c120af9e 100644 --- a/src/CxbxKrnl/VMManager.h +++ b/src/CxbxKrnl/VMManager.h @@ -160,7 +160,7 @@ class VMManager : public PhysicalMemory // xbox implementation of NtFreeVirtualMemory xboxkrnl::NTSTATUS XbFreeVirtualMemory(VAddr* addr, size_t* Size, DWORD FreeType); // 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 xboxkrnl::NTSTATUS VirtualMemoryStatistics(VAddr addr, xboxkrnl::PMEMORY_BASIC_INFORMATION memory_statistics);