Skip to content

Commit

Permalink
Fix skfont crash on SB < 16. (#4320)
Browse files Browse the repository at this point in the history
b/370737193
  • Loading branch information
yjzhang111 authored Oct 29, 2024
1 parent 38e817e commit 84a595e
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 84a595e

Please sign in to comment.