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

This commit is contained in:
The Dax committed 2014-06-02 08:28:35 -04:00
1 parent 719aa9d9d2
commit 70e1abac08
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -97,7 +97,7 @@ LPDIRECTINPUT8 DinputDevice::getPDI()
return pDI;
}
BOOL DinputDevice::DevicesCallback(
BOOL CALLBACK DinputDevice::DevicesCallback(
LPCDIDEVICEINSTANCE lpddi,
LPVOID pvRef
)
+1 -1
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
);