diff --git a/src/io/SDL_iostream.c b/src/io/SDL_iostream.c index fd5d0cad22..cff14fa7dd 100644 --- a/src/io/SDL_iostream.c +++ b/src/io/SDL_iostream.c @@ -1404,7 +1404,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) {