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)