[PATCH] windowscodecs: Use the ARRAY_SIZE() macro
Michael Stefaniuc
mstefani at winehq.org
Tue Jan 29 13:38:04 CST 2019
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/windowscodecs/tests/converter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/windowscodecs/tests/converter.c b/dlls/windowscodecs/tests/converter.c
index 8e0fb7759b..37b60facaa 100644
--- a/dlls/windowscodecs/tests/converter.c
+++ b/dlls/windowscodecs/tests/converter.c
@@ -709,7 +709,7 @@ static void check_tiff_format(IStream *stream, const WICPixelFormatGUID *format)
ok(hr == S_OK, "GetCount error %#x\n", hr);
ok(count != 0, "wrong count %u\n", count);
- for (i = 0; i < sizeof(tag)/sizeof(tag[0]); i++)
+ for (i = 0; i < ARRAY_SIZE(tag); i++)
{
PropVariantInit(&id);
PropVariantInit(&value);
--
2.20.1
More information about the wine-devel
mailing list