Io: Add missing error code on file open.

Doesn't affect Windows.
This commit is contained in:
Unknown W. Brackets
2018-11-06 19:28:22 -08:00
parent 67d6e3d384
commit 340460f01c
+4 -2
View File
@@ -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();