Fixed SDL_GetIOSize() return value

Fixes https://github.com/libsdl-org/SDL/issues/15129

(cherry picked from commit 0a1c7b5348)
This commit is contained in:
Sam Lantinga
2026-02-28 08:41:47 -08:00
parent e7e2805475
commit 654f6f94f6

View File

@@ -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) {