Sync to Wine-0_9_3: Lionel Ulmer lionel.ulmer@free.fr - Handle DInput8 interfaces in device QueryInterface. Francois Gouget fgouget@free.fr - Assorted spelling fixes. Modified: trunk/reactos/lib/dinput/device.c _____
Modified: trunk/reactos/lib/dinput/device.c --- trunk/reactos/lib/dinput/device.c 2005-12-12 22:56:08 UTC (rev 20131) +++ trunk/reactos/lib/dinput/device.c 2005-12-12 22:57:45 UTC (rev 20132) @@ -517,6 +517,11 @@
*ppobj = This; return DI_OK; } + if (IsEqualGUID(&IID_IDirectInputDevice8A,riid)) { + IDirectInputDevice8_AddRef(iface); + *ppobj = This; + return DI_OK; + } TRACE("Unsupported interface !\n"); return E_FAIL; } @@ -548,6 +553,11 @@ *ppobj = This; return DI_OK; } + if (IsEqualGUID(&IID_IDirectInputDevice8W,riid)) { + IDirectInputDevice8_AddRef(iface); + *ppobj = This; + return DI_OK; + } TRACE("Unsupported interface !\n"); return E_FAIL; }