From fb93add62e6a3bafdfdcda857981387d486b02ef Mon Sep 17 00:00:00 2001 From: ergo720 Date: Wed, 1 Aug 2018 20:24:53 +0200 Subject: [PATCH] Fix g_XbeType != true --- src/CxbxKrnl/VMManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CxbxKrnl/VMManager.cpp b/src/CxbxKrnl/VMManager.cpp index fc69fe3a8..f401cc4fb 100644 --- a/src/CxbxKrnl/VMManager.cpp +++ b/src/CxbxKrnl/VMManager.cpp @@ -1723,7 +1723,7 @@ xboxkrnl::NTSTATUS VMManager::XbAllocateVirtualMemory(VAddr* addr, ULONG ZeroBit } if (AlignedCapturedBase >= XBE_IMAGE_BASE + ROUND_UP_4K(CxbxKrnl_Xbe->m_Header.dwSizeofImage) && - (g_XbeType != true ? AlignedCapturedBase < CHIHIRO_MEMORY_SIZE : AlignedCapturedBase < XBE_MAX_VA)) + (g_bIsRetail != true ? AlignedCapturedBase < CHIHIRO_MEMORY_SIZE : AlignedCapturedBase < XBE_MAX_VA)) { // We can't commit on the memory placeholder after the xbe image or in the reserved area after it (128 MiB systems only)