mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-13 01:45:45 +00:00
use WIN_StringToUTF8W instead of WIN_StringToUTF8 where needed (#2)
cf. bug #5435. - SDL_wasapi_win32.c (GetWasapiDeviceName): pwszVal is WCHAR* - windows/SDL_sysfilesystem.c (SDL_GetBasePath, SDL_GetPrefPath) - windows/SDL_sysurl.c (SDL_SYS_OpenURL): wurl is WCHAR* - SDL_windowssensor.c (ConnectSensor): bstr_name is WCHAR* - windows/SDL_systhread.c (SDL_SYS_SetupThread): strw is WCHAR*
This commit is contained in:
parent
516042b4d6
commit
265a1cc97a
6 changed files with 10 additions and 11 deletions
|
|
@ -170,7 +170,7 @@ SDL_SYS_SetupThread(const char *name)
|
|||
}
|
||||
|
||||
if (pSetThreadDescription != NULL) {
|
||||
WCHAR *strw = WIN_UTF8ToString(name);
|
||||
WCHAR *strw = WIN_UTF8ToStringW(name);
|
||||
if (strw) {
|
||||
pSetThreadDescription(GetCurrentThread(), strw);
|
||||
SDL_free(strw);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue