dinput: Silence incorrect warning and move it to a valid place.
This commit is contained in:
parent
9a96ac0dcc
commit
53f64a09cf
|
@ -464,6 +464,11 @@ static HRESULT WINAPI IDirectInput7AImpl_CreateDeviceEx(LPDIRECTINPUT7A iface, R
|
||||||
ret_value = DIERR_NOINTERFACE;
|
ret_value = DIERR_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ret_value == DIERR_NOINTERFACE)
|
||||||
|
{
|
||||||
|
WARN("invalid device GUID %s\n", debugstr_guid(rguid));
|
||||||
|
}
|
||||||
|
|
||||||
return ret_value;
|
return ret_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -574,7 +574,6 @@ static HRESULT joydev_create_deviceA(IDirectInputImpl *dinput, REFGUID rguid, RE
|
||||||
return DIERR_NOINTERFACE;
|
return DIERR_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
WARN("invalid device GUID %s\n",debugstr_guid(rguid));
|
|
||||||
return DIERR_DEVICENOTREG;
|
return DIERR_DEVICENOTREG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -565,7 +565,6 @@ static HRESULT joydev_create_deviceA(IDirectInputImpl *dinput, REFGUID rguid, RE
|
||||||
return DIERR_NOINTERFACE;
|
return DIERR_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
WARN("invalid device GUID\n");
|
|
||||||
return DIERR_DEVICENOTREG;
|
return DIERR_DEVICENOTREG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue