diff --git a/dlls/dinput/effect_linuxinput.c b/dlls/dinput/effect_linuxinput.c index fe3334a3eeb..9205c9c01ff 100644 --- a/dlls/dinput/effect_linuxinput.c +++ b/dlls/dinput/effect_linuxinput.c @@ -585,9 +585,12 @@ static HRESULT WINAPI LinuxInputEffectImpl_SetParameters( env->fade_length = 0; env->fade_level = 0; } - else if(peff->lpEnvelope->dwAttackTime || peff->lpEnvelope->dwAttackLevel || - peff->lpEnvelope->dwFadeTime || peff->lpEnvelope->dwFadeLevel) - WARN("Ignoring dinput envelope not supported in the linux effect\n"); + else if(peff->lpEnvelope) + { + if(peff->lpEnvelope->dwAttackTime || peff->lpEnvelope->dwAttackLevel || + peff->lpEnvelope->dwFadeTime || peff->lpEnvelope->dwFadeLevel) + WARN("Ignoring dinput envelope not supported in the linux effect\n"); + } } /* Gain and Sample Period settings are not supported by the linux