Michael Stefaniuc : windowscodecs: Use the ARRAY_SIZE() macro.
Module: wine Branch: master Commit: 52066ee0922e460ff26bb1d05ffebd82d551babc URL: https://source.winehq.org/git/wine.git/?a=commit;h=52066ee0922e460ff26bb1d05... Author: Michael Stefaniuc <mstefani(a)winehq.org> Date: Tue Jan 29 20:38:04 2019 +0100 windowscodecs: Use the ARRAY_SIZE() macro. Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> Signed-off-by: Vincent Povirk <vincent(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)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 8e0fb77..37b60fa 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);
participants (1)
-
Alexandre Julliard