Fixed wrong check
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31608 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -155,7 +155,7 @@ BUSBInterface::CountEndpoints() const
|
|||||||
const BUSBEndpoint *
|
const BUSBEndpoint *
|
||||||
BUSBInterface::EndpointAt(uint32 index) const
|
BUSBInterface::EndpointAt(uint32 index) const
|
||||||
{
|
{
|
||||||
if (index >= fDescriptor.num_endpoints && fEndpoints != NULL)
|
if (index >= fDescriptor.num_endpoints || fEndpoints == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return fEndpoints[index];
|
return fEndpoints[index];
|
||||||
|
|||||||
Reference in New Issue
Block a user