From e4a6562937037e4a918a587d24e635c1c1e658ea Mon Sep 17 00:00:00 2001 From: Christoph Frick Date: Wed, 20 Dec 2006 12:28:58 +0100 Subject: [PATCH] dinput: Drop magic int. --- dlls/dinput/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dinput/device.c b/dlls/dinput/device.c index 6b05ed68246..31e05a5489b 100644 --- a/dlls/dinput/device.c +++ b/dlls/dinput/device.c @@ -381,7 +381,7 @@ HRESULT create_DataFormat(LPCDIDATAFORMAT asked_format, DataFormat *format) (/* 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))) &&