diff --git a/src/io/SDL_iostream.c b/src/io/SDL_iostream.c index 6b1eacd0ab..8172c8e773 100644 --- a/src/io/SDL_iostream.c +++ b/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) {