Fixed return check for usbdk backend.

This commit is contained in:
Armin Novak 2020-03-09 16:22:29 +01:00 committed by akallabeth
parent 4692f00864
commit c58db76e4c
1 changed files with 4 additions and 0 deletions

View File

@ -885,9 +885,13 @@ int freerdp_urbdrc_client_subsystem_entry(PFREERDP_URBDRC_SERVICE_ENTRY_POINTS p
switch (rc)
{
case LIBUSB_SUCCESS:
break;
case LIBUSB_ERROR_NOT_FOUND:
case LIBUSB_ERROR_NOT_SUPPORTED:
WLog_WARN(TAG, "LIBUSB_OPTION_USE_USBDK %s [%d]", libusb_strerror(rc), rc);
break;
default:
WLog_ERR(TAG, "LIBUSB_OPTION_USE_USBDK %s [%d]", libusb_strerror(rc), rc);
goto fail;
}
#endif