summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2014-09-27 21:21:48 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2014-10-06 19:58:42 +0200
commit0be5c03176236fe602d49c32717a6f3af0a55465 (patch)
tree61573d4ed66ac5e7f46968ef871b3acf9f0c5b99 /src/core/hle
parentFileSys/Kernel: Implement SetSize service call for File objects. (diff)
downloadyuzu-0be5c03176236fe602d49c32717a6f3af0a55465.tar
yuzu-0be5c03176236fe602d49c32717a6f3af0a55465.tar.gz
yuzu-0be5c03176236fe602d49c32717a6f3af0a55465.tar.bz2
yuzu-0be5c03176236fe602d49c32717a6f3af0a55465.tar.lz
yuzu-0be5c03176236fe602d49c32717a6f3af0a55465.tar.xz
yuzu-0be5c03176236fe602d49c32717a6f3af0a55465.tar.zst
yuzu-0be5c03176236fe602d49c32717a6f3af0a55465.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/kernel/archive.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/kernel/archive.cpp b/src/core/hle/kernel/archive.cpp
index 0a66ab29b..86aba7489 100644
--- a/src/core/hle/kernel/archive.cpp
+++ b/src/core/hle/kernel/archive.cpp
@@ -374,6 +374,9 @@ Handle OpenFileFromArchive(Handle archive_handle, const std::string& path, const
file->path = path;
file->backend = archive->backend->OpenFile(path, mode);
+ if (!file->backend)
+ return 0;
+
return handle;
}