Browse Source

Fixed SDL_GetIOSize() return value

Fixes https://github.com/libsdl-org/SDL/issues/15129
Sam Lantinga 2 weeks ago
parent
commit
0a1c7b5348
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/io/SDL_iostream.c

+ 2 - 1
src/io/SDL_iostream.c

@@ -1513,7 +1513,8 @@ SDL_PropertiesID SDL_GetIOProperties(SDL_IOStream *context)
 Sint64 SDL_GetIOSize(SDL_IOStream *context)
 {
     CHECK_PARAM(!context) {
-        return SDL_InvalidParamError("context");
+        SDL_InvalidParamError("context");
+        return -1;
     }
 
     if (!context->iface.size) {