dinput: Allow for holes in device status structure.

This commit is contained in:
Vitaliy Margolen 2009-01-03 17:53:22 -07:00 committed by Alexandre Julliard
parent c95c75b0f6
commit d2da2d378e
1 changed files with 1 additions and 4 deletions

View File

@ -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) {