dinput: Zero out returned information struct.

This commit is contained in:
Vitaliy Margolen 2006-12-17 23:21:10 -07:00 committed by Alexandre Julliard
parent 1db55d2511
commit 350c66fec2
1 changed files with 1 additions and 0 deletions

View File

@ -975,6 +975,7 @@ static HRESULT WINAPI JoystickAImpl_EnumObjects(
TRACE("\n");
}
memset(&ddoi, 0, sizeof(ddoi));
/* Only the fields till dwFFMaxForce are relevant */
ddoi.dwSize = FIELD_OFFSET(DIDEVICEOBJECTINSTANCEA, dwFFMaxForce);