Commit 350c66fe authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

dinput: Zero out returned information struct.

parent 1db55d25
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment