- Fixed: DirectInput8Create() used the wrong calling convention.

SVN r1426 (trunk)
This commit is contained in:
Randy Heit 2009-02-19 23:12:48 +00:00
commit 491abe3a2c
2 changed files with 4 additions and 3 deletions

View file

@ -1455,7 +1455,7 @@ bool I_InitInput (void *hwnd)
DInputDLL = LoadLibrary("dinput8.dll");
if (DInputDLL != NULL)
{
typedef HRESULT (*blah)(HINSTANCE, DWORD, REFIID, LPVOID *, LPUNKNOWN);
typedef HRESULT (WINAPI *blah)(HINSTANCE, DWORD, REFIID, LPVOID *, LPUNKNOWN);
blah di8c = (blah)GetProcAddress(DInputDLL, "DirectInput8Create");
if (di8c != NULL)
{
@ -1484,7 +1484,7 @@ bool I_InitInput (void *hwnd)
I_FatalError ("Could not load dinput.dll: %08lx", GetLastError());
}
typedef HRESULT (*blah)(HINSTANCE, DWORD, LPDIRECTINPUT*, LPUNKNOWN);
typedef HRESULT (WINAPI *blah)(HINSTANCE, DWORD, LPDIRECTINPUT*, LPUNKNOWN);
blah dic = (blah)GetProcAddress (DInputDLL, "DirectInputCreateA");
if (dic == NULL)