mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-29 17:28:42 +00:00
Replace duplicate functions and lstrlen/lstrcat with SDL string functions
This commit is contained in:
parent
67e8522d31
commit
391bb80bb9
6 changed files with 16 additions and 50 deletions
|
|
@ -89,7 +89,7 @@ WINRT_GetGameBar()
|
|||
IGameBarStatics_ *pGameBar = NULL;
|
||||
HRESULT hr;
|
||||
|
||||
hr = ::WindowsCreateString(wClassName, (UINT32)wcslen(wClassName), &hClassName);
|
||||
hr = ::WindowsCreateString(wClassName, (UINT32)SDL_wcslen(wClassName), &hClassName);
|
||||
if (FAILED(hr)) {
|
||||
goto done;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -782,7 +782,7 @@ WINRT_CreateDisplayRequest(_THIS)
|
|||
ABI::Windows::System::Display::IDisplayRequest * pDisplayRequest = nullptr;
|
||||
HRESULT hr;
|
||||
|
||||
hr = ::WindowsCreateString(wClassName, (UINT32)wcslen(wClassName), &hClassName);
|
||||
hr = ::WindowsCreateString(wClassName, (UINT32)SDL_wcslen(wClassName), &hClassName);
|
||||
if (FAILED(hr)) {
|
||||
goto done;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue