mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 20:09:38 +08:00
Fixed SDL_GetIOSize() return value
Fixes https://github.com/libsdl-org/SDL/issues/15129
This commit is contained in:
@@ -1513,7 +1513,8 @@ SDL_PropertiesID SDL_GetIOProperties(SDL_IOStream *context)
|
|||||||
Sint64 SDL_GetIOSize(SDL_IOStream *context)
|
Sint64 SDL_GetIOSize(SDL_IOStream *context)
|
||||||
{
|
{
|
||||||
CHECK_PARAM(!context) {
|
CHECK_PARAM(!context) {
|
||||||
return SDL_InvalidParamError("context");
|
SDL_InvalidParamError("context");
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!context->iface.size) {
|
if (!context->iface.size) {
|
||||||
|
|||||||
Reference in New Issue
Block a user