dinput: Fix crash in dump_DIEFFECT() when rglDirection is unexpectedly NULL.
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e97fa67bc2
commit
f925becd4a
|
@ -207,7 +207,7 @@ void dump_DIEFFECT(LPCDIEFFECT eff, REFGUID guid, DWORD dwFlags)
|
|||
TRACE(" - dwTriggerButton: %d\n", eff->dwTriggerButton);
|
||||
TRACE(" - dwTriggerRepeatInterval: %d\n", eff->dwTriggerRepeatInterval);
|
||||
TRACE(" - rglDirection: %p\n", eff->rglDirection);
|
||||
if (dwFlags & DIEP_DIRECTION) {
|
||||
if (dwFlags & DIEP_DIRECTION && eff->rglDirection) {
|
||||
TRACE(" ");
|
||||
for (i = 0; i < eff->cAxes; ++i)
|
||||
TRACE("%d ", eff->rglDirection[i]);
|
||||
|
|
Loading…
Reference in New Issue