Added back the missing WINAPI calling convention declaration that was left out in 9a0cc4b7dc. Closes #2057.

This commit is contained in:
binary1248 2022-04-06 13:55:27 +02:00 committed by Lukas Dürrenberger
parent e0d03ec6a8
commit 4afa91422f

View File

@ -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<DirectInput8CreateFunc>(reinterpret_cast<void*>(GetProcAddress(dinput8dll, "DirectInput8Create")));
if (directInput8Create)