diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-12 01:25:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-12 01:25:30 +0200 |
commit | bc286c169fb8b07d21e082e05152cfd6bc611b33 (patch) | |
tree | 512bc4cca3adbe98a16cae454377c2ec2638b5e3 /src/core/loader/elf.cpp | |
parent | Merge pull request #1018 from Subv/ssy_sync (diff) | |
parent | game_list: Reorder error checks (diff) | |
download | yuzu-bc286c169fb8b07d21e082e05152cfd6bc611b33.tar yuzu-bc286c169fb8b07d21e082e05152cfd6bc611b33.tar.gz yuzu-bc286c169fb8b07d21e082e05152cfd6bc611b33.tar.bz2 yuzu-bc286c169fb8b07d21e082e05152cfd6bc611b33.tar.lz yuzu-bc286c169fb8b07d21e082e05152cfd6bc611b33.tar.xz yuzu-bc286c169fb8b07d21e082e05152cfd6bc611b33.tar.zst yuzu-bc286c169fb8b07d21e082e05152cfd6bc611b33.zip |
Diffstat (limited to 'src/core/loader/elf.cpp')
-rw-r--r-- | src/core/loader/elf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/loader/elf.cpp b/src/core/loader/elf.cpp index a7133f5a6..401cad3ab 100644 --- a/src/core/loader/elf.cpp +++ b/src/core/loader/elf.cpp @@ -390,7 +390,7 @@ ResultStatus AppLoader_ELF::Load(Kernel::SharedPtr<Kernel::Process>& process) { std::vector<u8> buffer = file->ReadAllBytes(); if (buffer.size() != file->GetSize()) - return ResultStatus::Error; + return ResultStatus::ErrorIncorrectELFFileSize; ElfReader elf_reader(&buffer[0]); SharedPtr<CodeSet> codeset = elf_reader.LoadInto(Memory::PROCESS_IMAGE_VADDR); |