From 4afa91422f1632aec1d9fba28a9d2146b7ce29d3 Mon Sep 17 00:00:00 2001 From: binary1248 Date: Wed, 6 Apr 2022 13:55:27 +0200 Subject: [PATCH] Added back the missing WINAPI calling convention declaration that was left out in 9a0cc4b7dc8dae79fc912a04a9d4679d42815a4a. Closes #2057. --- src/SFML/Window/Win32/JoystickImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Window/Win32/JoystickImpl.cpp b/src/SFML/Window/Win32/JoystickImpl.cpp index 8912274e..315ff585 100644 --- a/src/SFML/Window/Win32/JoystickImpl.cpp +++ b/src/SFML/Window/Win32/JoystickImpl.cpp @@ -405,7 +405,7 @@ void JoystickImpl::initializeDInput() if (dinput8dll) { // Try to get the address of the DirectInput8Create entry point - using DirectInput8CreateFunc = HRESULT (*)(HINSTANCE, DWORD, const IID &, LPVOID *, LPUNKNOWN); + using DirectInput8CreateFunc = HRESULT (WINAPI *)(HINSTANCE, DWORD, const IID &, LPVOID *, LPUNKNOWN); auto directInput8Create = reinterpret_cast(reinterpret_cast(GetProcAddress(dinput8dll, "DirectInput8Create"))); if (directInput8Create)