From d2da2d378eefb1450f8882d80157465d1e272746 Mon Sep 17 00:00:00 2001 From: Vitaliy Margolen Date: Sat, 3 Jan 2009 17:53:22 -0700 Subject: [PATCH] dinput: Allow for holes in device status structure. --- dlls/dinput/device.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dlls/dinput/device.c b/dlls/dinput/device.c index ebc87ebddda..20a577b865e 100644 --- a/dlls/dinput/device.c +++ b/dlls/dinput/device.c @@ -432,11 +432,8 @@ static HRESULT create_DataFormat(LPCDIDATAFORMAT asked_format, DataFormat *forma break; } } - - if (j == asked_format->dwNumObjs) - same = 0; } - + TRACE("Setting to default value :\n"); for (j = 0; j < asked_format->dwNumObjs; j++) { if (done[j] == 0) {