https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ddfe5ce855c553aeddb33…
commit ddfe5ce855c553aeddb33b512a48ae67b4eff7dc
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Mon Oct 1 00:23:40 2018 +0100
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Mon Oct 1 00:23:40 2018 +0100
[DPLAYX_WINETEST] Sync with Wine Staging 3.17. CORE-15127
---
modules/rostests/winetests/dplayx/dplayx.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/rostests/winetests/dplayx/dplayx.c
b/modules/rostests/winetests/dplayx/dplayx.c
index c67d1b78e9..f5c30a9a06 100644
--- a/modules/rostests/winetests/dplayx/dplayx.c
+++ b/modules/rostests/winetests/dplayx/dplayx.c
@@ -767,7 +767,7 @@ static BOOL CALLBACK callback_providersA(GUID* guid, char *name, DWORD
major, DW
if (!prov) return TRUE;
- if (prov->call_count < sizeof(prov->guid_data) /
sizeof(prov->guid_data[0]))
+ if (prov->call_count < ARRAY_SIZE(prov->guid_data))
{
prov->guid_ptr[prov->call_count] = guid;
prov->guid_data[prov->call_count] = *guid;
@@ -786,7 +786,7 @@ static BOOL CALLBACK callback_providersW(GUID* guid, WCHAR *name,
DWORD major, D
if (!prov) return TRUE;
- if (prov->call_count < sizeof(prov->guid_data) /
sizeof(prov->guid_data[0]))
+ if (prov->call_count < ARRAY_SIZE(prov->guid_data))
{
prov->guid_ptr[prov->call_count] = guid;
prov->guid_data[prov->call_count] = *guid;
@@ -896,7 +896,7 @@ static BOOL CALLBACK EnumAddress_cb2( REFGUID guidDataType,
{
BOOL found = FALSE;
int i;
- for( i=0; i < sizeof(sps) / sizeof(sps[0]) && !found; i++ )
+ for( i=0; i < ARRAY_SIZE(sps) && !found; i++ )
found = IsEqualGUID( sps[i], lpData );
ok( found, "Unknown Address type found %s\n", wine_dbgstr_guid(lpData)
);
}