From 8a6e48d46d3bd000fa1f64fdc66e7734e7b56533 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sun, 14 Nov 2021 04:40:50 +0300 Subject: [PATCH] constified SDL_RegisterApp() --- include/SDL_main.h | 2 +- src/dynapi/SDL_dynapi_procs.h | 2 +- src/video/windows/SDL_windowsevents.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/SDL_main.h b/include/SDL_main.h index e5f50e7a5..177f89326 100644 --- a/include/SDL_main.h +++ b/include/SDL_main.h @@ -143,7 +143,7 @@ extern DECLSPEC void SDLCALL SDL_SetMainReady(void); * * \since This function is available since SDL 2.0.0. */ -extern DECLSPEC int SDLCALL SDL_RegisterApp(char *name, Uint32 style, void *hInst); +extern DECLSPEC int SDLCALL SDL_RegisterApp(const char *name, Uint32 style, void *hInst); extern DECLSPEC void SDLCALL SDL_UnregisterApp(void); #endif /* __WIN32__ */ diff --git a/src/dynapi/SDL_dynapi_procs.h b/src/dynapi/SDL_dynapi_procs.h index 00fae10f5..4953f2902 100644 --- a/src/dynapi/SDL_dynapi_procs.h +++ b/src/dynapi/SDL_dynapi_procs.h @@ -63,7 +63,7 @@ SDL_DYNAPI_PROC(SDL_RWops*,SDL_RWFromFP,(void *a, SDL_bool b),(a,b),return) #endif #ifdef __WIN32__ -SDL_DYNAPI_PROC(int,SDL_RegisterApp,(char *a, Uint32 b, void *c),(a,b,c),return) +SDL_DYNAPI_PROC(int,SDL_RegisterApp,(const char *a, Uint32 b, void *c),(a,b,c),return) SDL_DYNAPI_PROC(void,SDL_UnregisterApp,(void),(),) SDL_DYNAPI_PROC(int,SDL_Direct3D9GetAdapterIndex,(int a),(a),return) SDL_DYNAPI_PROC(IDirect3DDevice9*,SDL_RenderGetD3D9Device,(SDL_Renderer *a),(a),return) diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c index 2c7426577..adc190cae 100644 --- a/src/video/windows/SDL_windowsevents.c +++ b/src/video/windows/SDL_windowsevents.c @@ -1542,7 +1542,7 @@ HINSTANCE SDL_Instance = NULL; /* Register the class for this application */ int -SDL_RegisterApp(char *name, Uint32 style, void *hInst) +SDL_RegisterApp(const char *name, Uint32 style, void *hInst) { const char *hint; WNDCLASSEX wcex;