diff --git a/include/SDL3/SDL_iostream.h b/include/SDL3/SDL_iostream.h index cdffa2b6c6..ffe25fb21a 100644 --- a/include/SDL3/SDL_iostream.h +++ b/include/SDL3/SDL_iostream.h @@ -169,7 +169,7 @@ typedef struct SDL_IOStream SDL_IOStream; * to a win32 `HANDLE`, that this SDL_IOStream is using to access the * filesystem. If the program isn't running on Windows, or SDL used some * other method to access the filesystem, this property will not be set. - * - `SDL_PROP_IOSTREAM_STDIO_HANDLE_POINTER`: a pointer, that can be cast to + * - `SDL_PROP_IOSTREAM_STDIO_FILE_POINTER`: a pointer, that can be cast to * a stdio `FILE *`, that this SDL_IOStream is using to access the * filesystem. If SDL used some other method to access the filesystem, this * property will not be set. PLEASE NOTE that if SDL is using a different C @@ -197,9 +197,9 @@ typedef struct SDL_IOStream SDL_IOStream; */ extern DECLSPEC SDL_IOStream *SDLCALL SDL_IOFromFile(const char *file, const char *mode); -#define SDL_PROP_IOSTREAM_WINDOWS_HANDLE_POINTER "SDL.iostream.windows.handle" -#define SDL_PROP_IOSTREAM_STDIO_HANDLE_POINTER "SDL.iostream.stdio.handle" -#define SDL_PROP_IOSTREAM_ANDROID_AASSET_POINTER "SDL.iostream.android.aasset" +#define SDL_PROP_IOSTREAM_WINDOWS_HANDLE_POINTER "SDL.iostream.windows.handle" +#define SDL_PROP_IOSTREAM_STDIO_FILE_POINTER "SDL.iostream.stdio.file" +#define SDL_PROP_IOSTREAM_ANDROID_AASSET_POINTER "SDL.iostream.android.aasset" /** * Use this function to prepare a read-write memory buffer for use with diff --git a/src/file/SDL_iostream.c b/src/file/SDL_iostream.c index d2fd86ade0..d88c2f8f00 100644 --- a/src/file/SDL_iostream.c +++ b/src/file/SDL_iostream.c @@ -430,7 +430,7 @@ static SDL_IOStream *SDL_IOFromFP(FILE *fp, SDL_bool autoclose) } else { const SDL_PropertiesID props = SDL_GetIOProperties(iostr); if (props) { - SDL_SetProperty(props, SDL_PROP_IOSTREAM_STDIO_HANDLE_POINTER, fp); + SDL_SetProperty(props, SDL_PROP_IOSTREAM_STDIO_FILE_POINTER, fp); } }