From d571c449b36425a4964158f7231facc9c2e68ac9 Mon Sep 17 00:00:00 2001 From: Yijia Zhang Date: Mon, 28 Oct 2024 14:22:48 -0700 Subject: [PATCH] Fix skfont crash on SB < 16. b/370737193 Change-Id: I295462fecbb4a6ddb7d9b4db4bb67eafd5715f1b --- starboard/android/shared/file_get_path_info.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/starboard/android/shared/file_get_path_info.cc b/starboard/android/shared/file_get_path_info.cc index b1a8d58e9964..e176d129644a 100644 --- a/starboard/android/shared/file_get_path_info.cc +++ b/starboard/android/shared/file_get_path_info.cc @@ -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);