summaryrefslogtreecommitdiffhomepage
path: root/opentrack/win32-joystick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack/win32-joystick.cpp')
-rw-r--r--opentrack/win32-joystick.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opentrack/win32-joystick.cpp b/opentrack/win32-joystick.cpp
index 1c658c75..e3147929 100644
--- a/opentrack/win32-joystick.cpp
+++ b/opentrack/win32-joystick.cpp
@@ -174,7 +174,7 @@ bool win32_joy_ctx::joy::poll(fn f)
(void) joy_handle->Acquire();
- if (!FAILED(joy_handle->Poll()))
+ if (!FAILED(hr = joy_handle->Poll()))
ok = true;
if (!ok)