From 423b1fafcddef219b362be3452a05c17f9a49d26 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 29 Dec 2023 18:06:27 -0800 Subject: [PATCH] Fixed warning C4047: 'function': '__x_ABI_CWindows_CGaming_CInput_CIRawGameController **' differs in levels of indirection from '__x_ABI_CWindows_CGaming_CInput_CIRawGameController *' This warning happens with old and buggy versions of the Windows SDK --- src/joystick/windows/SDL_windows_gaming_input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/joystick/windows/SDL_windows_gaming_input.c b/src/joystick/windows/SDL_windows_gaming_input.c index 05efad4538..3365f29ac0 100644 --- a/src/joystick/windows/SDL_windows_gaming_input.c +++ b/src/joystick/windows/SDL_windows_gaming_input.c @@ -662,7 +662,7 @@ static int WGI_JoystickInit(void) hr = __FIVectorView_1_Windows__CGaming__CInput__CRawGameController_GetAt(controllers, i, &controller); if (SUCCEEDED(hr) && controller) { - __FIEventHandler_1_Windows__CGaming__CInput__CRawGameController_Invoke(&controller_added.iface, NULL, controller); + IEventHandler_CRawGameControllerVtbl_InvokeAdded(&controller_added.iface, NULL, controller); __x_ABI_CWindows_CGaming_CInput_CIRawGameController_Release(controller); } } @@ -969,7 +969,7 @@ static void WGI_JoystickQuit(void) { if (wgi.controller_statics) { while (wgi.controller_count > 0) { - __FIEventHandler_1_Windows__CGaming__CInput__CRawGameController_Invoke(&controller_removed.iface, NULL, wgi.controllers[wgi.controller_count - 1].controller); + IEventHandler_CRawGameControllerVtbl_InvokeRemoved(&controller_removed.iface, NULL, wgi.controllers[wgi.controller_count - 1].controller); } if (wgi.controllers) { SDL_free(wgi.controllers);