Commit 53f64a09 authored by Peter Dons Tychsen's avatar Peter Dons Tychsen Committed by Alexandre Julliard

dinput: Silence incorrect warning and move it to a valid place.

parent 9a96ac0d
......@@ -464,6 +464,11 @@ static HRESULT WINAPI IDirectInput7AImpl_CreateDeviceEx(LPDIRECTINPUT7A iface, R
ret_value = DIERR_NOINTERFACE;
}
if (ret_value == DIERR_NOINTERFACE)
{
WARN("invalid device GUID %s\n", debugstr_guid(rguid));
}
return ret_value;
}
......
......@@ -574,7 +574,6 @@ static HRESULT joydev_create_deviceA(IDirectInputImpl *dinput, REFGUID rguid, RE
return DIERR_NOINTERFACE;
}
WARN("invalid device GUID %s\n",debugstr_guid(rguid));
return DIERR_DEVICENOTREG;
}
......
......@@ -565,7 +565,6 @@ static HRESULT joydev_create_deviceA(IDirectInputImpl *dinput, REFGUID rguid, RE
return DIERR_NOINTERFACE;
}
WARN("invalid device GUID\n");
return DIERR_DEVICENOTREG;
}
......
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