https://git.reactos.org/?p=reactos.git;a=commitdiff;h=138051c0bec144f8114c7…
commit 138051c0bec144f8114c7516127bfc165b7d4145
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Sat Feb 2 14:16:27 2019 +0100
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Sat Feb 2 14:16:27 2019 +0100
[SHDOCVW_WINETEST] Sync with Wine Staging 4.0. CORE-15682
---
modules/rostests/winetests/shdocvw/shdocvw.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/rostests/winetests/shdocvw/shdocvw.c
b/modules/rostests/winetests/shdocvw/shdocvw.c
index cdf1814f6d..167fcf1a92 100644
--- a/modules/rostests/winetests/shdocvw/shdocvw.c
+++ b/modules/rostests/winetests/shdocvw/shdocvw.c
@@ -207,7 +207,7 @@ static void test_ParseURLFromOutsideSourceA(void)
return;
}
- for(i = 0; i < sizeof(ParseURL_table)/sizeof(ParseURL_table[0]); i++) {
+ for(i = 0; i < ARRAY_SIZE(ParseURL_table); i++) {
memset(buffer, '#', sizeof(buffer)-1);
buffer[sizeof(buffer)-1] = '\0';
len = sizeof(buffer);
@@ -306,7 +306,7 @@ static void test_ParseURLFromOutsideSourceW(void)
MultiByteToWideChar(CP_ACP, 0, bufferA, -1, bufferW, INTERNET_MAX_URL_LENGTH);
/* len is in characters */
- len = sizeof(bufferW)/sizeof(bufferW[0]);
+ len = ARRAY_SIZE(bufferW);
dummy = 0;
/* on success, 1 is returned for unicode version */
res = pParseURLFromOutsideSourceW(urlW, bufferW, &len, &dummy);