Skip to content

Commit 9c5aaa6

Browse files
committed
fix crash on i686 mingw
1 parent 9b7ca05 commit 9c5aaa6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

platforms/input/xinput/GameControllerHandler_xinput.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ GameControllerHandler_xinput::GameControllerHandler_xinput()
2222
getState = nullptr;
2323
HMODULE module = LoadLibraryA("XINPUT1_3.dll");
2424
if (module)
25-
getState = (DWORD (*)(DWORD, XINPUT_STATE *))GetProcAddress(module, "XInputGetState");
25+
getState = (DWORD (WINAPI *)(DWORD, XINPUT_STATE *))GetProcAddress(module, "XInputGetState");
2626
if (!getState)
2727
{
2828
LOG_W("Could not find xinput driver, xinput controllers will be disabled.");

platforms/input/xinput/GameControllerHandler_xinput.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ class GameControllerHandler_xinput : public GameControllerHandler
4343

4444
protected:
4545
InputState_xinput m_inputStates;
46-
DWORD (*getState)(DWORD, XINPUT_STATE *);
46+
DWORD (WINAPI *getState)(DWORD, XINPUT_STATE *);
4747
};

0 commit comments

Comments
 (0)