Merge pull request #11023 from unknownbrackets/file-error

Io: Prevent error when file locked for writing
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2018-05-09 06:05:55 +02:00
commit c1ccc28b15
1 file changed
+1 -1
+1 -1
View File
@@ -252,7 +252,7 @@ bool DirectoryFileHandle::Open(std::string &basePath, std::string &fileName, Fil
I18NCategory *err = GetI18NCategory("Error");
host->NotifyUserMessage(err->T("Disk full while writing data"));
error = SCE_KERNEL_ERROR_ERRNO_NO_PERM;
} else {
} else if (!success) {
error = SCE_KERNEL_ERROR_ERRNO_FILE_NOT_FOUND;
}
}