Skip to content

Commit

Permalink
Fix skfont crash on SB < 16.
Browse files Browse the repository at this point in the history
b/370737193

Change-Id: I295462fecbb4a6ddb7d9b4db4bb67eafd5715f1b
  • Loading branch information
yjzhang111 committed Oct 28, 2024
1 parent 7b90344 commit d571c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starboard/android/shared/file_get_path_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ bool SbFileGetPathInfo(const char* path, SbFileInfo* out_info) {
return ::starboard::shared::posix::impl::FileGetPathInfo(path, out_info);
}

SbFile file = SbFileOpen(path, kSbFileRead, NULL, NULL);
SbFile file = SbFileOpen(path, kSbFileRead | kSbFileOpenOnly, NULL, NULL);
if (file) {
bool result = SbFileGetInfo(file, out_info);
SbFileClose(file);
Expand Down

0 comments on commit d571c44

Please sign in to comment.