Bruno Jesus : xinput1_3: Test proper no new data error from XInputGetKeystroke.

Alexandre Julliard julliard at winehq.org
Mon Sep 12 10:14:09 CDT 2016


Module: wine
Branch: master
Commit: cb855d98d50c21136b6743b958842fdc24909f49
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cb855d98d50c21136b6743b958842fdc24909f49

Author: Bruno Jesus <00cpxxx at gmail.com>
Date:   Sat Sep 10 18:46:27 2016 -0300

xinput1_3: Test proper no new data error from XInputGetKeystroke.

Signed-off-by: Bruno Jesus <00cpxxx at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/xinput1_3/tests/xinput.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/xinput1_3/tests/xinput.c b/dlls/xinput1_3/tests/xinput.c
index ef11b50..17884e1 100644
--- a/dlls/xinput1_3/tests/xinput.c
+++ b/dlls/xinput1_3/tests/xinput.c
@@ -133,7 +133,8 @@ static void test_get_keystroke(void)
         ZeroMemory(&keystroke, sizeof(XINPUT_KEYSTROKE));
 
         result = pXInputGetKeystroke(controllerNum, XINPUT_FLAG_GAMEPAD, &keystroke);
-        ok(result == ERROR_SUCCESS || result == ERROR_DEVICE_NOT_CONNECTED, "XInputGetKeystroke failed with (%d)\n", result);
+        ok(result == ERROR_EMPTY || result == ERROR_SUCCESS || result == ERROR_DEVICE_NOT_CONNECTED,
+           "XInputGetKeystroke failed with (%d)\n", result);
 
         if (ERROR_DEVICE_NOT_CONNECTED == result)
         {




More information about the wine-cvs mailing list