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

This commit is contained in:
Peter Dons Tychsen 2008-01-04 22:34:41 +01:00 committed by Alexandre Julliard
parent 9a96ac0dcc
commit 53f64a09cf
3 changed files with 5 additions and 2 deletions

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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;
} }