Don't change error code if it returned hrJERR

This commit is contained in:
Kristian Sloth Lauszus 2013-10-08 19:51:20 +02:00
parent 81ed31e1fe
commit 7a02a07620

View file

@ -110,7 +110,8 @@ FailGetDevDescr:
#ifdef DEBUG_USB_HOST
NotifyFailGetDevDescr(rcode);
#endif
rcode = USB_ERROR_FailGetDevDescr;
if (rcode != hrJERR)
rcode = USB_ERROR_FailGetDevDescr;
Release();
return rcode;
};