summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-08-30 06:49:10 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-08-30 06:49:10 +0200
commit22bde7a4fd6eb48cdcdde61d86ca193abd054699 (patch)
tree7a41d0fbad56c039d31cfc0db6b1824ed654344f
parenta224ffabfedd0f90f8412c63a95bcdefaa6897d9 (diff)
win32-joystick: fix COM failure path
Device enumeration only fails for internal reasons. Not finding the device is not one of them.
-rw-r--r--ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp b/ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp
index ac374aa8..77fd7241 100644
--- a/ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp
+++ b/ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp
@@ -121,11 +121,8 @@ void FTNoIR_Tracker::start_tracker(QFrame* frame)
this,
DIEDFL_ATTACHEDONLY)))
{
- if (guid_to_check.isEmpty())
- {
- qDebug() << "enum1";
- goto fail;
- }
+ qDebug() << "enum1";
+ goto fail;
}
if (!g_pJoystick && guid_to_check.size())