- 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
parent 666e40c8bb
commit 491abe3a2c
2 changed files with 4 additions and 3 deletions

View file

@ -1,4 +1,4 @@
February 15, 2009 (Changes by Graf Zahl)
February 15, 2009 (Changes by Graf Zahl)
- Fixed: The CHARFORMAT structure that is used to set the color in a Windows
Rich Edit control was not fully initialized resulting in incorrect colors
being set.
@ -23,6 +23,7 @@ February 14, 2009 (Changes by Graf Zahl)
block in the file.
February 10, 2009
- Fixed: DirectInput8Create() used the wrong calling convention.
- Moved the V_InitFontColors() call earlier in the startup sequence so that
colored error messages appear colored in the startup window. Also lightened
up the "Flat" red to contrast better on the startup background.

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)