summaryrefslogtreecommitdiffstats
path: root/heimdall
diff options
context:
space:
mode:
authorRobert Craig <rpcraig@tycho.ncsc.mil>2013-10-30 15:30:26 +0100
committerRobert Craig <rpcraig@tycho.ncsc.mil>2013-11-06 16:00:33 +0100
commit5cd4141c980bfd516ba2843afa2c2a8348d5613a (patch)
tree96ea1c5530c632b2e8d43e8ce26b79aa0afc62e9 /heimdall
parentMerge pull request #131 from jorti/master (diff)
downloadHeimdall-5cd4141c980bfd516ba2843afa2c2a8348d5613a.tar
Heimdall-5cd4141c980bfd516ba2843afa2c2a8348d5613a.tar.gz
Heimdall-5cd4141c980bfd516ba2843afa2c2a8348d5613a.tar.bz2
Heimdall-5cd4141c980bfd516ba2843afa2c2a8348d5613a.tar.lz
Heimdall-5cd4141c980bfd516ba2843afa2c2a8348d5613a.tar.xz
Heimdall-5cd4141c980bfd516ba2843afa2c2a8348d5613a.tar.zst
Heimdall-5cd4141c980bfd516ba2843afa2c2a8348d5613a.zip
Diffstat (limited to 'heimdall')
-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 ed12b87..d21ea60 100644
--- a/heimdall/source/BridgeManager.cpp
+++ b/heimdall/source/BridgeManager.cpp
@@ -232,7 +232,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);