From 22bde7a4fd6eb48cdcdde61d86ca193abd054699 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 30 Aug 2015 06:49:10 +0200 Subject: win32-joystick: fix COM failure path Device enumeration only fails for internal reasons. Not finding the device is not one of them. --- ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'ftnoir_tracker_joystick') 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()) -- cgit v1.2.3