https://git.reactos.org/?p=reactos.git;a=commitdiff;h=50ae3dd409e6c42a0fa4a…
commit 50ae3dd409e6c42a0fa4a18db44c1fb71012974a
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Mon Oct 1 12:57:42 2018 +0100
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Mon Oct 1 12:57:42 2018 +0100
[ITSS_WINETEST] Sync with Wine Staging 3.17. CORE-15127
---
modules/rostests/winetests/itss/protocol.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/rostests/winetests/itss/protocol.c
b/modules/rostests/winetests/itss/protocol.c
index ea3a1d6967..6c46ca1061 100644
--- a/modules/rostests/winetests/itss/protocol.c
+++ b/modules/rostests/winetests/itss/protocol.c
@@ -504,18 +504,18 @@ static void test_its_protocol_info(IInternetProtocol *protocol)
for(i = PARSE_CANONICALIZE; i <= PARSE_UNESCAPE; i++) {
if(i != PARSE_CANONICALIZE && i != PARSE_SECURITY_URL) {
hres = IInternetProtocolInfo_ParseUrl(info, blank_url1, i, 0, buf,
- sizeof(buf)/sizeof(buf[0]), &size, 0);
+ ARRAY_SIZE(buf), &size, 0);
ok(hres == INET_E_DEFAULT_ACTION,
"[%d] failed: %08x, expected INET_E_DEFAULT_ACTION\n", i,
hres);
}
}
- for(i=0; i < sizeof(combine_tests)/sizeof(combine_tests[0]); i++) {
+ for(i=0; i < ARRAY_SIZE(combine_tests); i++) {
size = 0xdeadbeef;
memset(buf, 0xfe, sizeof(buf));
hres = IInternetProtocolInfo_CombineUrl(info, a2w(combine_tests[i].base_url),
a2w(combine_tests[i].rel_url), combine_tests[i].flags, buf,
- sizeof(buf)/sizeof(WCHAR), &size, 0);
+ ARRAY_SIZE(buf), &size, 0);
ok(hres == combine_tests[i].hres, "[%d] CombineUrl returned %08x, expected
%08x\n",
i, hres, combine_tests[i].hres);
ok(size == (combine_tests[i].combined_url ?
strlen(combine_tests[i].combined_url)+1