Actually check that PumpDevices have the correct vid/pid.

This commit is contained in:
Steve Checkoway
2007-01-18 07:18:41 +00:00
parent 0e43d2fe35
commit 44baf35a73
5 changed files with 11 additions and 6 deletions
+5 -1
View File
@@ -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() );