shdocvw/tests: Use the available ARRAY_SIZE() macro.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Michael Stefaniuc 2018-05-30 21:15:44 +02:00 committed by Alexandre Julliard
parent 11e3cf091d
commit 98db820f54
1 changed files with 2 additions and 2 deletions

View File

@ -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;
res = pParseURLFromOutsideSourceW(urlW, bufferW, &len, &dummy);
WideCharToMultiByte(CP_ACP, 0, bufferW, -1, bufferA, sizeof(bufferA), NULL, NULL);