summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/archive.cpp
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-12-07 23:40:27 +0100
committerarchshift <admin@archshift.com>2014-12-07 23:47:14 +0100
commit20d2ed09502f41519beb435a1300f2a57995c651 (patch)
tree4d58349bdfc1ab122d522780c1d9692832ce9ad0 /src/core/hle/kernel/archive.cpp
parentMerge pull request #250 from Subv/cbranch_2 (diff)
downloadyuzu-20d2ed09502f41519beb435a1300f2a57995c651.tar
yuzu-20d2ed09502f41519beb435a1300f2a57995c651.tar.gz
yuzu-20d2ed09502f41519beb435a1300f2a57995c651.tar.bz2
yuzu-20d2ed09502f41519beb435a1300f2a57995c651.tar.lz
yuzu-20d2ed09502f41519beb435a1300f2a57995c651.tar.xz
yuzu-20d2ed09502f41519beb435a1300f2a57995c651.tar.zst
yuzu-20d2ed09502f41519beb435a1300f2a57995c651.zip
Diffstat (limited to 'src/core/hle/kernel/archive.cpp')
-rw-r--r--src/core/hle/kernel/archive.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/kernel/archive.cpp b/src/core/hle/kernel/archive.cpp
index 647f0dea9..a875fa7ff 100644
--- a/src/core/hle/kernel/archive.cpp
+++ b/src/core/hle/kernel/archive.cpp
@@ -421,6 +421,11 @@ ResultVal<Handle> OpenDirectoryFromArchive(Handle archive_handle, const FileSys:
directory->path = path;
directory->backend = archive->backend->OpenDirectory(path);
+ if (!directory->backend) {
+ return ResultCode(ErrorDescription::NotFound, ErrorModule::FS,
+ ErrorSummary::NotFound, ErrorLevel::Permanent);
+ }
+
return MakeResult<Handle>(handle);
}