diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-08-06 02:26:52 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-08-16 06:03:47 +0200 |
commit | 74d4bc0af1d2f22105bf3c00efcb85613d59cc19 (patch) | |
tree | 171c5d0508d99f9ef4dcba2a0e3543eb9bdfa1db /src/core/hle/svc.cpp | |
parent | HLE: Remove empty ConfigMem and SharedPage Shutdown functions (diff) | |
download | yuzu-74d4bc0af1d2f22105bf3c00efcb85613d59cc19.tar yuzu-74d4bc0af1d2f22105bf3c00efcb85613d59cc19.tar.gz yuzu-74d4bc0af1d2f22105bf3c00efcb85613d59cc19.tar.bz2 yuzu-74d4bc0af1d2f22105bf3c00efcb85613d59cc19.tar.lz yuzu-74d4bc0af1d2f22105bf3c00efcb85613d59cc19.tar.xz yuzu-74d4bc0af1d2f22105bf3c00efcb85613d59cc19.tar.zst yuzu-74d4bc0af1d2f22105bf3c00efcb85613d59cc19.zip |
Diffstat (limited to 'src/core/hle/svc.cpp')
-rw-r--r-- | src/core/hle/svc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index b944f4af0..e1a416def 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp @@ -102,7 +102,7 @@ static ResultCode ControlMemory(u32* out_addr, u32 operation, u32 addr0, u32 add if (addr0 >= Memory::HEAP_VADDR && addr0 < Memory::HEAP_VADDR_END) { ResultCode result = process.HeapFree(addr0, size); if (result.IsError()) return result; - } else if (addr0 >= Memory::LINEAR_HEAP_VADDR && addr0 < Memory::LINEAR_HEAP_VADDR_END) { + } else if (addr0 >= process.GetLinearHeapBase() && addr0 < process.GetLinearHeapLimit()) { ResultCode result = process.LinearFree(addr0, size); if (result.IsError()) return result; } else { |