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