wine/dlls/dinput device.c

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 28 04:59:56 CST 2005


ChangeSet ID:	21449
CVSROOT:	/opt/cvs-commit
Module name:	wine
Changes by:	julliard at winehq.org	2005/11/28 04:59:56

Modified files:
	dlls/dinput    : device.c 

Log message:
	Lionel Ulmer <lionel.ulmer at free.fr>
	Handle DInput8 interfaces in device QueryInterface.

Patch: http://cvs.winehq.org/patch.py?id=21449

Old revision  New revision  Changes     Path
 1.31          1.32          +10 -0      wine/dlls/dinput/device.c

Index: wine/dlls/dinput/device.c
diff -u -p wine/dlls/dinput/device.c:1.31 wine/dlls/dinput/device.c:1.32
--- wine/dlls/dinput/device.c:1.31	28 Nov 2005 10:59:56 -0000
+++ wine/dlls/dinput/device.c	28 Nov 2005 10:59:56 -0000
@@ -517,6 +517,11 @@ HRESULT WINAPI IDirectInputDevice2AImpl_
 	*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_
 	*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;
 }



More information about the wine-cvs mailing list