Permalink
Browse files

Merge pull request #11542 from unknownbrackets/disk-error

Io: Add missing error code on file open
  • Loading branch information...
hrydgard committed Nov 7, 2018
2 parents cff827e + 340460f commit 4c3f16821116385dc7d4ca9dae329b4d9d306246
Showing with 4 additions and 2 deletions.
  1. +4 −2 Core/FileSystems/DirectoryFileSystem.cpp
@@ -281,8 +281,10 @@ bool DirectoryFileHandle::Open(std::string &basePath, std::string &fileName, Fil
#if HOST_IS_CASE_SENSITIVE
if (!success && !(access & FILEACCESS_CREATE)) {
if (!FixPathCase(basePath,fileName, FPC_PATH_MUST_EXIST) )
return 0; // or go on and attempt (for a better error code than just 0?)
if (!FixPathCase(basePath, fileName, FPC_PATH_MUST_EXIST)) {
error = SCE_KERNEL_ERROR_ERRNO_FILE_NOT_FOUND;
return false;
}
fullName = GetLocalPath(basePath,fileName);
const char *fullNameC = fullName.c_str();

0 comments on commit 4c3f168

Please sign in to comment.