Added back the missing WINAPI calling convention declaration that was left out in 9a0cc4b7dc
. Closes #2057.
This commit is contained in:
parent
e0d03ec6a8
commit
4afa91422f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user