[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-patches
Subject: [PATCH 12/17] shdocvw/tests: Use the available ARRAY_SIZE() macro
From: Michael Stefaniuc <mstefani () winehq ! org>
Date: 2018-05-30 19:15:44
Message-ID: 20180530191549.3435-12-mstefani () winehq ! org
[Download RAW message or body]
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
---
dlls/shdocvw/tests/shdocvw.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/shdocvw/tests/shdocvw.c b/dlls/shdocvw/tests/shdocvw.c
index 7b4eccf27c..d54cf1613a 100644
--- a/dlls/shdocvw/tests/shdocvw.c
+++ b/dlls/shdocvw/tests/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;
res = pParseURLFromOutsideSourceW(urlW, bufferW, &len, &dummy);
WideCharToMultiByte(CP_ACP, 0, bufferW, -1, bufferA, sizeof(bufferA), NULL, NULL);
--
2.14.3
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic