summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-12-06 02:02:55 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-12-06 02:37:18 +0100
commit0be7e0a4e6ec65800a12bff1e7384995592c226f (patch)
treed88b24cda403fc4df9c6171165eabcd669447a14
parentae1faae5d963b75a0b04bf69e77fc0ee12d2232d (diff)
api/keys: initialize hresult
-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)