dinput8: Win64 printf format warning fixes.
This commit is contained in:
parent
9f725a2719
commit
16e15913d9
|
@ -6,7 +6,6 @@ MODULE = dinput8.dll
|
||||||
IMPORTLIB = libdinput8.$(IMPLIBEXT)
|
IMPORTLIB = libdinput8.$(IMPLIBEXT)
|
||||||
IMPORTS = dinput ole32 advapi32 kernel32
|
IMPORTS = dinput ole32 advapi32 kernel32
|
||||||
EXTRALIBS = -luuid -ldxguid
|
EXTRALIBS = -luuid -ldxguid
|
||||||
EXTRADEFS = -DWINE_NO_LONG_AS_INT
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
dinput8_main.c
|
dinput8_main.c
|
||||||
|
|
|
@ -53,7 +53,7 @@ static void UnlockModule(void)
|
||||||
HRESULT WINAPI DirectInput8Create(HINSTANCE hinst, DWORD dwVersion, REFIID riid, LPVOID *ppDI, LPUNKNOWN punkOuter) {
|
HRESULT WINAPI DirectInput8Create(HINSTANCE hinst, DWORD dwVersion, REFIID riid, LPVOID *ppDI, LPUNKNOWN punkOuter) {
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
TRACE("hInst (%p), dwVersion: %ld, riid (%s), punkOuter (%p))\n", hinst, dwVersion, debugstr_guid(riid), punkOuter);
|
TRACE("hInst (%p), dwVersion: %d, riid (%s), punkOuter (%p))\n", hinst, dwVersion, debugstr_guid(riid), punkOuter);
|
||||||
|
|
||||||
/* The specified version needs to be dinput8 (0x800) or higher */
|
/* The specified version needs to be dinput8 (0x800) or higher */
|
||||||
if(dwVersion < 0x800)
|
if(dwVersion < 0x800)
|
||||||
|
@ -66,7 +66,7 @@ HRESULT WINAPI DirectInput8Create(HINSTANCE hinst, DWORD dwVersion, REFIID riid,
|
||||||
|
|
||||||
hr = CoCreateInstance( &CLSID_DirectInput8, punkOuter, CLSCTX_INPROC_SERVER, riid, ppDI);
|
hr = CoCreateInstance( &CLSID_DirectInput8, punkOuter, CLSCTX_INPROC_SERVER, riid, ppDI);
|
||||||
if(FAILED(hr)) {
|
if(FAILED(hr)) {
|
||||||
ERR("CoCreateInstance failed with hr = %ld; Try running wineprefixcreate to fix it.\n", hr);
|
ERR("CoCreateInstance failed with hr = %d; Try running wineprefixcreate to fix it.\n", hr);
|
||||||
return DIERR_INVALIDPARAM;
|
return DIERR_INVALIDPARAM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue