[PATCH 3/3] xinput1_3: Test proper no new data error from XInputGetKeystroke
Bruno Jesus
00cpxxx at gmail.com
Sat Sep 10 16:46:27 CDT 2016
Signed-off-by: Bruno Jesus <00cpxxx at gmail.com>
---
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)
{
--
2.9.3
More information about the wine-patches
mailing list