mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 07:37:02 +00:00
joy.cpl: Better handle effect creation errors.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51873 Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f101712510
commit
960bb36941
1 changed files with 5 additions and 0 deletions
|
@ -867,6 +867,11 @@ static BOOL CALLBACK ff_effects_callback(const DIEFFECTINFOW *pdei, void *pvRef)
|
|||
|
||||
hr = IDirectInputDevice2_CreateEffect(
|
||||
joystick->device, &pdei->guid, &dieffect, &joystick->effects[joystick->cur_effect].effect, NULL);
|
||||
if (FAILED(hr))
|
||||
{
|
||||
FIXME("Failed to create effect with type %s, hr %#x\n", debugstr_guid(&pdei->guid), hr);
|
||||
return DIENUM_CONTINUE;
|
||||
}
|
||||
|
||||
joystick->effects[joystick->cur_effect].params = dieffect;
|
||||
joystick->effects[joystick->cur_effect].info = *pdei;
|
||||
|
|
Loading…
Reference in a new issue