Sync to Wine-0_9_3:
authorGé van Geldorp <ge@gse.nl>
Mon, 12 Dec 2005 22:57:45 +0000 (22:57 +0000)
committerGé van Geldorp <ge@gse.nl>
Mon, 12 Dec 2005 22:57:45 +0000 (22:57 +0000)
Lionel Ulmer <lionel.ulmer@free.fr>
- Handle DInput8 interfaces in device QueryInterface.
Francois Gouget <fgouget@free.fr>
- Assorted spelling fixes.

svn path=/trunk/; revision=20132

reactos/lib/dinput/device.c

index a032b7d..8cca6f5 100644 (file)
@@ -517,6 +517,11 @@ HRESULT WINAPI IDirectInputDevice2AImpl_QueryInterface(
        *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 @@ HRESULT WINAPI IDirectInputDevice2WImpl_QueryInterface(
        *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;
 }