dinput: Zero out returned information struct.
This commit is contained in:
parent
1db55d2511
commit
350c66fec2
|
@ -975,6 +975,7 @@ static HRESULT WINAPI JoystickAImpl_EnumObjects(
|
||||||
TRACE("\n");
|
TRACE("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memset(&ddoi, 0, sizeof(ddoi));
|
||||||
/* Only the fields till dwFFMaxForce are relevant */
|
/* Only the fields till dwFFMaxForce are relevant */
|
||||||
ddoi.dwSize = FIELD_OFFSET(DIDEVICEOBJECTINSTANCEA, dwFFMaxForce);
|
ddoi.dwSize = FIELD_OFFSET(DIDEVICEOBJECTINSTANCEA, dwFFMaxForce);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue