Skip to content

Commit ee59a4e

Browse files
authored
Fix a bug in the open() function in the Storage Access Framework VFS backend (#18360)
1 parent 04e06f7 commit ee59a4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libretro-common/vfs/saf/src/com/libretro/common/vfs/VfsImplementationSaf.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ else if (!read)
9393
}
9494
catch (FileNotFoundException | IllegalArgumentException e)
9595
{
96-
if (createdFile || !write)
96+
if (createdFile || !write || !truncate)
9797
return -1;
9898
createdFile = true;
9999
final Path parentPath = filePath.getParent();

0 commit comments

Comments
 (0)