Skip to content
Snippets Groups Projects
Commit 350c66fe authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard
Browse files

dinput: Zero out returned information struct.

parent 1db55d25
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment