diff options
| author | 2014-12-08 18:03:48 -0500 | |
|---|---|---|
| committer | 2014-12-08 18:03:48 -0500 | |
| commit | 72ad73519ceb5ae6992858fcf0906879d19badf0 (patch) | |
| tree | f00a218fc180df8cc39e922feb56a994af772d68 /src/core/hle/kernel/archive.cpp | |
| parent | Merge pull request #245 from rohit-n/null-nullptr (diff) | |
| parent | Make OpenDirectory fail if the directory doesn't exist (diff) | |
| download | yuzu-72ad73519ceb5ae6992858fcf0906879d19badf0.tar.gz yuzu-72ad73519ceb5ae6992858fcf0906879d19badf0.tar.xz yuzu-72ad73519ceb5ae6992858fcf0906879d19badf0.zip | |
Merge pull request #260 from archshift/opendir
Make OpenDirectory fail if the directory doesn't exist
Diffstat (limited to 'src/core/hle/kernel/archive.cpp')
| -rw-r--r-- | src/core/hle/kernel/archive.cpp | 5 |
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: | |||
| 421 | directory->path = path; | 421 | directory->path = path; |
| 422 | directory->backend = archive->backend->OpenDirectory(path); | 422 | directory->backend = archive->backend->OpenDirectory(path); |
| 423 | 423 | ||
| 424 | if (!directory->backend) { | ||
| 425 | return ResultCode(ErrorDescription::NotFound, ErrorModule::FS, | ||
| 426 | ErrorSummary::NotFound, ErrorLevel::Permanent); | ||
| 427 | } | ||
| 428 | |||
| 424 | return MakeResult<Handle>(handle); | 429 | return MakeResult<Handle>(handle); |
| 425 | } | 430 | } |
| 426 | 431 | ||