Christoph Frick : dinput: Drop magic int.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Dec 20 12:24:53 CST 2006


Module: wine
Branch: master
Commit: e4a6562937037e4a918a587d24e635c1c1e658ea
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e4a6562937037e4a918a587d24e635c1c1e658ea

Author: Christoph Frick <frick at sc-networks.de>
Date:   Wed Dec 20 12:28:58 2006 +0100

dinput: Drop magic int.

---

 dlls/dinput/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/dinput/device.c b/dlls/dinput/device.c
index 6b05ed6..31e05a5 100644
--- a/dlls/dinput/device.c
+++ b/dlls/dinput/device.c
@@ -381,7 +381,7 @@ HRESULT create_DataFormat(LPCDIDATAFORMA
 		(/* Then check if it accepts any instance id, and if not, if it matches Wine's
 		  * instance id.
 		  */
-		 (DIDFT_GETINSTANCE(asked_format->rgodf[j].dwType) == 0xFFFF) ||
+		 ((asked_format->rgodf[j].dwType & DIDFT_INSTANCEMASK) == DIDFT_ANYINSTANCE) ||
 		 (DIDFT_GETINSTANCE(asked_format->rgodf[j].dwType) == 0x00FF) || /* This is mentionned in no DX docs, but it works fine - tested on WinXP */
 		 (DIDFT_GETINSTANCE(asked_format->rgodf[j].dwType) == DIDFT_GETINSTANCE(format->wine_df->rgodf[i].dwType)))
 		&&




More information about the wine-cvs mailing list