diff options
author | Hyper <james_peter_wong@hotmail.com> | 2017-01-06 14:21:22 +0100 |
---|---|---|
committer | Sebastian Valle <subv2112@gmail.com> | 2017-01-06 14:21:22 +0100 |
commit | f0199a17f6cee85bd9e88501c0961f001c396687 (patch) | |
tree | 6e5d57f4e8de2b76289d4ed7b16685a001a16982 /src/core | |
parent | Merge pull request #2408 from Subv/priority_boosting (diff) | |
download | yuzu-f0199a17f6cee85bd9e88501c0961f001c396687.tar yuzu-f0199a17f6cee85bd9e88501c0961f001c396687.tar.gz yuzu-f0199a17f6cee85bd9e88501c0961f001c396687.tar.bz2 yuzu-f0199a17f6cee85bd9e88501c0961f001c396687.tar.lz yuzu-f0199a17f6cee85bd9e88501c0961f001c396687.tar.xz yuzu-f0199a17f6cee85bd9e88501c0961f001c396687.tar.zst yuzu-f0199a17f6cee85bd9e88501c0961f001c396687.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/svc.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 855f3af82..843d697ec 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp @@ -897,7 +897,11 @@ static ResultCode CreateMemoryBlock(Kernel::Handle* out_handle, u32 addr, u32 si return ResultCode(ErrorDescription::InvalidCombination, ErrorModule::OS, ErrorSummary::InvalidArgument, ErrorLevel::Usage); - if (addr < Memory::PROCESS_IMAGE_VADDR || addr + size > Memory::SHARED_MEMORY_VADDR_END) { + // TODO(Subv): Processes with memory type APPLICATION are not allowed + // to create memory blocks with addr = 0, any attempts to do so + // should return error 0xD92007EA. + if ((addr < Memory::PROCESS_IMAGE_VADDR || addr + size > Memory::SHARED_MEMORY_VADDR_END) && + addr != 0) { return ResultCode(ErrorDescription::InvalidAddress, ErrorModule::OS, ErrorSummary::InvalidArgument, ErrorLevel::Usage); } |