mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-22 01:57:18 +01:00
Fixed bug 5371 - Rawinput: Fix truncating cast of string length.
Joel Linn Fixes an implicit truncation of a string length on 64bit systems.
This commit is contained in:
parent
a3ccf9adca
commit
c78ca2d170
@ -553,7 +553,7 @@ RAWINPUT_InitWindowsGamingInput(RAWINPUT_DeviceContext *ctx)
|
||||
LPTSTR pNamespace = L"Windows.Gaming.Input.Gamepad";
|
||||
HSTRING hNamespaceString;
|
||||
|
||||
hr = WindowsCreateStringFunc(pNamespace, SDL_wcslen(pNamespace), &hNamespaceString);
|
||||
hr = WindowsCreateStringFunc(pNamespace, (UINT32)SDL_wcslen(pNamespace), &hNamespaceString);
|
||||
if (SUCCEEDED(hr)) {
|
||||
RoGetActivationFactoryFunc(hNamespaceString, &SDL_IID_IGamepadStatics, &wgi_state.gamepad_statics);
|
||||
WindowsDeleteStringFunc(hNamespaceString);
|
||||
|
Loading…
Reference in New Issue
Block a user