Actually check that PumpDevices have the correct vid/pid.
This commit is contained in:
@@ -55,7 +55,11 @@ bool HIDDevice::Open( io_object_t device )
|
||||
vid = 0;
|
||||
if( !IntValue(pidRef, pid) )
|
||||
pid = 0;
|
||||
InitDevice( vid, pid );
|
||||
if( !InitDevice(vid, pid) )
|
||||
{
|
||||
CFRelease( properties );
|
||||
return false;
|
||||
}
|
||||
|
||||
if( object && CFGetTypeID(object) == CFStringGetTypeID() )
|
||||
m_sDescription = CFStringGetCStringPtr( CFStringRef(object), CFStringGetSystemEncoding() );
|
||||
|
||||
Reference in New Issue
Block a user