Win32: Use CALLBACK (__stdcall) for DinputDevice::DevicesCallback. Fixes 32-bit compilation.

This commit is contained in:
The Dax 2014-06-02 08:26:55 -04:00
parent 719aa9d9d2
commit 70e1abac08
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ LPDIRECTINPUT8 DinputDevice::getPDI()
return pDI;
}
BOOL DinputDevice::DevicesCallback(
BOOL CALLBACK DinputDevice::DevicesCallback(
LPCDIDEVICEINSTANCE lpddi,
LPVOID pvRef
)

View File

@ -43,7 +43,7 @@ private:
//also, it excludes the devices that are compatible with XInput
static void getDevices();
//callback for the WinAPI to call
static BOOL DevicesCallback(
static BOOL CALLBACK DevicesCallback(
LPCDIDEVICEINSTANCE lpddi,
LPVOID pvRef
);