mirror of
https://github.com/encounter/SDL.git
synced 2025-12-16 08:27:05 +00:00
Replace duplicate functions and lstrlen/lstrcat with SDL string functions
This commit is contained in:
committed by
Sam Lantinga
parent
67e8522d31
commit
391bb80bb9
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user