Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixes #1519, adds initialization to Android RWops internal variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabomdq committed Jun 20, 2012
1 parent cf6dbf1 commit 7baf21f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/android/SDL_android.cpp
Expand Up @@ -541,6 +541,8 @@ extern "C" int Android_JNI_FileOpen(SDL_RWops* ctx,
jstring fileNameJString = mEnv->NewStringUTF(fileName);
ctx->hidden.androidio.fileNameRef = mEnv->NewGlobalRef(fileNameJString);
ctx->hidden.androidio.inputStreamRef = NULL;
ctx->hidden.androidio.readableByteChannelRef = NULL;
ctx->hidden.androidio.readMethod = NULL;

return Android_JNI_FileOpen(ctx);
}
Expand Down

0 comments on commit 7baf21f

Please sign in to comment.