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:
Brendan Shanks 2020-03-24 17:13:36 -07:00 committed by Alexandre Julliard
parent e97fa67bc2
commit f925becd4a
1 changed files with 1 additions and 1 deletions

View File

@ -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]);