]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/corefoundation/hid.cpp
changed background color reference from light gray to assigned bkgd color
[wxWidgets.git] / src / mac / corefoundation / hid.cpp
index 8cd855282ae3b70a8f8bd609d4c39413404abee8..bc107d9f8b0be656f47e126fda9e797ca77a7e4a 100644 (file)
@@ -111,7 +111,8 @@ bool wxHIDDevice::Create (int nClass, int nType, int nDev)
     //Now get the maching services
     io_iterator_t pIterator;
     wxIOCHECK(IOServiceGetMatchingServices(m_pPort, pDictionary, &pIterator), "No Matching HID Services");
-    wxASSERT_MSG(pIterator != 0, wxT("No devices found!"));
+    if(pIterator == 0)
+        return false; // No devices found
 
     //Now we iterate through them
     io_object_t pObject;