mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-26 12:27:44 +00:00
Fixed crash if a file can't be opened on Android
This commit is contained in:
@@ -600,7 +600,6 @@ SDL_IOStream *SDL_IOFromFile(const char *file, const char *mode)
|
||||
|
||||
void *iodata = NULL;
|
||||
if (Android_JNI_FileOpen(&iodata, file, mode) < 0) {
|
||||
Android_JNI_FileClose(iodata);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user