Commit f925becd authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

dinput: Fix crash in dump_DIEFFECT() when rglDirection is unexpectedly NULL.

parent e97fa67b
...@@ -207,7 +207,7 @@ void dump_DIEFFECT(LPCDIEFFECT eff, REFGUID guid, DWORD dwFlags) ...@@ -207,7 +207,7 @@ void dump_DIEFFECT(LPCDIEFFECT eff, REFGUID guid, DWORD dwFlags)
TRACE(" - dwTriggerButton: %d\n", eff->dwTriggerButton); TRACE(" - dwTriggerButton: %d\n", eff->dwTriggerButton);
TRACE(" - dwTriggerRepeatInterval: %d\n", eff->dwTriggerRepeatInterval); TRACE(" - dwTriggerRepeatInterval: %d\n", eff->dwTriggerRepeatInterval);
TRACE(" - rglDirection: %p\n", eff->rglDirection); TRACE(" - rglDirection: %p\n", eff->rglDirection);
if (dwFlags & DIEP_DIRECTION) { if (dwFlags & DIEP_DIRECTION && eff->rglDirection) {
TRACE(" "); TRACE(" ");
for (i = 0; i < eff->cAxes; ++i) for (i = 0; i < eff->cAxes; ++i)
TRACE("%d ", eff->rglDirection[i]); TRACE("%d ", eff->rglDirection[i]);
......
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