https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b05ac020b45c61f3d8aa2…
commit b05ac020b45c61f3d8aa2d787350125655bb088e
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Mon Dec 23 00:55:56 2019 +0100
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Mon Dec 23 00:55:56 2019 +0100
[XINPUT1_3_WINETEST] Sync with Wine Staging 4.18. CORE-16441
---
modules/rostests/winetests/xinput1_3/xinput.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/rostests/winetests/xinput1_3/xinput.c
b/modules/rostests/winetests/xinput1_3/xinput.c
index f26fda90ebb..a6e2107446c 100644
--- a/modules/rostests/winetests/xinput1_3/xinput.c
+++ b/modules/rostests/winetests/xinput1_3/xinput.c
@@ -126,6 +126,9 @@ static void test_get_state(void)
}
}
+ result = pXInputGetState(0, NULL);
+ ok(result == ERROR_BAD_ARGUMENTS, "XInputGetState returned (%d)\n",
result);
+
result = pXInputGetState(XUSER_MAX_COUNT, &state);
ok(result == ERROR_BAD_ARGUMENTS, "XInputGetState returned (%d)\n",
result);
@@ -292,7 +295,7 @@ START_TEST(xinput)
void *pXInputGetStateEx_Ordinal;
int i;
- for (i = 0; i < sizeof(libs) / sizeof(libs[0]); i++)
+ for (i = 0; i < ARRAY_SIZE(libs); i++)
{
hXinput = LoadLibraryA( libs[i].name );