SDL_windowswindow.c (SDL_HelperWindowCreate): adjust for ANSI/UNICODE:

change SDL_HelperWindowClassName and SDL_HelperWindowName from WCHAR *
to be const TCHAR*

cf. bug #5435.
This commit is contained in:
Ozkan Sezer 2021-01-04 01:23:50 +03:00
parent 398d2764c7
commit 390fd14f54
1 changed files with 3 additions and 3 deletions

View File

@ -47,8 +47,8 @@
/* Fake window to help with DirectInput events. */
HWND SDL_HelperWindow = NULL;
static WCHAR *SDL_HelperWindowClassName = TEXT("SDLHelperWindowInputCatcher");
static WCHAR *SDL_HelperWindowName = TEXT("SDLHelperWindowInputMsgWindow");
static const TCHAR *SDL_HelperWindowClassName = TEXT("SDLHelperWindowInputCatcher");
static const TCHAR *SDL_HelperWindowName = TEXT("SDLHelperWindowInputMsgWindow");
static ATOM SDL_HelperWindowClass = 0;
/* For borderless Windows, still want the following flags:
@ -826,7 +826,7 @@ SDL_HelperWindowCreate(void)
/* Create the class. */
SDL_zero(wce);
wce.lpfnWndProc = DefWindowProc;
wce.lpszClassName = (LPCWSTR) SDL_HelperWindowClassName;
wce.lpszClassName = SDL_HelperWindowClassName;
wce.hInstance = hInstance;
/* Register the class. */