src/core/android/SDL_android.cpp
changeset 7037 3fedf1f25b94
parent 7018 9cef1005df5f
child 7039 f69b305b053d
     1.1 --- a/src/core/android/SDL_android.cpp	Fri Mar 29 21:29:57 2013 -0400
     1.2 +++ b/src/core/android/SDL_android.cpp	Sun Mar 31 12:48:50 2013 -0400
     1.3 @@ -811,8 +811,7 @@
     1.4      JNIEnv *mEnv = Android_JNI_GetEnv();
     1.5  
     1.6      if (!refs.init(mEnv)) {
     1.7 -        SDL_SetError("Failed to allocate enough JVM local references");
     1.8 -        return -1;
     1.9 +        return SDL_SetError("Failed to allocate enough JVM local references");
    1.10      }
    1.11  
    1.12      if (ctx) {
    1.13 @@ -875,8 +874,7 @@
    1.14                  offset = ctx->hidden.androidio.offset + ctx->hidden.androidio.size + offset;
    1.15                  break;
    1.16              default:
    1.17 -                SDL_SetError("Unknown value for 'whence'");
    1.18 -                return -1;
    1.19 +                return SDL_SetError("Unknown value for 'whence'");
    1.20          }
    1.21          whence = SEEK_SET;
    1.22  
    1.23 @@ -897,14 +895,12 @@
    1.24                  newPosition = ctx->hidden.androidio.size + offset;
    1.25                  break;
    1.26              default:
    1.27 -                SDL_SetError("Unknown value for 'whence'");
    1.28 -                return -1;
    1.29 +                return SDL_SetError("Unknown value for 'whence'");
    1.30          }
    1.31  
    1.32          /* Validate the new position */
    1.33          if (newPosition < 0) {
    1.34 -            SDL_Error(SDL_EFSEEK);
    1.35 -            return -1;
    1.36 +            return SDL_Error(SDL_EFSEEK);
    1.37          }
    1.38          if (newPosition > ctx->hidden.androidio.size) {
    1.39              newPosition = ctx->hidden.androidio.size;