summaryrefslogtreecommitdiffstats
path: root/heimdall/source
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell+github@glassechidna.com.au>2014-05-06 14:40:04 +0200
committerBenjamin Dobell <benjamin.dobell+github@glassechidna.com.au>2014-05-06 14:40:04 +0200
commit32383b994dc550ef54167a46b17ce3855414261c (patch)
tree12b53c942ebd8aad29e2c3579c0f2d3dc8e0cf8c /heimdall/source
parentFixed statically linked builds on Windows. (diff)
parentFix error condition check on finding correct usb interface. (diff)
downloadHeimdall-32383b994dc550ef54167a46b17ce3855414261c.tar
Heimdall-32383b994dc550ef54167a46b17ce3855414261c.tar.gz
Heimdall-32383b994dc550ef54167a46b17ce3855414261c.tar.bz2
Heimdall-32383b994dc550ef54167a46b17ce3855414261c.tar.lz
Heimdall-32383b994dc550ef54167a46b17ce3855414261c.tar.xz
Heimdall-32383b994dc550ef54167a46b17ce3855414261c.tar.zst
Heimdall-32383b994dc550ef54167a46b17ce3855414261c.zip
Diffstat (limited to '')
-rw-r--r--heimdall/source/BridgeManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/heimdall/source/BridgeManager.cpp b/heimdall/source/BridgeManager.cpp
index e954f3b..6546541 100644
--- a/heimdall/source/BridgeManager.cpp
+++ b/heimdall/source/BridgeManager.cpp
@@ -231,7 +231,7 @@ int BridgeManager::FindDeviceInterface(void)
libusb_free_config_descriptor(configDescriptor);
- if (result != LIBUSB_SUCCESS)
+ if (interfaceIndex < 0)
{
Interface::PrintError("Failed to find correct interface configuration\n");
return (BridgeManager::kInitialiseFailed);