mirror of
https://github.com/reactos/wine.git
synced 2025-02-25 23:35:31 +00:00
dinput: Fix GetEffectStatus for Linux when effect was not downloaded.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7ee4021694
commit
cc373223b0
@ -234,11 +234,16 @@ static HRESULT WINAPI LinuxInputEffectImpl_GetEffectStatus(
|
||||
LPDIRECTINPUTEFFECT iface,
|
||||
LPDWORD pdwFlags)
|
||||
{
|
||||
TRACE("(this=%p,%p)\n", iface, pdwFlags);
|
||||
LinuxInputEffectImpl *This = impl_from_IDirectInputEffect(iface);
|
||||
|
||||
TRACE("(this=%p,%p)\n", This, pdwFlags);
|
||||
|
||||
if (!pdwFlags)
|
||||
return E_POINTER;
|
||||
|
||||
if (This->effect.id == -1)
|
||||
return DIERR_NOTDOWNLOADED;
|
||||
|
||||
/* linux sends the effect status through an event.
|
||||
* that event is trapped by our parent joystick driver
|
||||
* and there is no clean way to pass it back to us. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user