Module: wine Branch: master Commit: c090aab111089eb3a6975a3d366b68c02c7399d0 URL: https://source.winehq.org/git/wine.git/?a=commit;h=c090aab111089eb3a6975a3d3... Author: Michael Stefaniuc <mstefani(a)winehq.org> Date: Tue Nov 13 20:33:38 2018 +0100 combase/tests: Use the ARRAY_SIZE() macro. Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/combase/tests/roapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/combase/tests/roapi.c b/dlls/combase/tests/roapi.c index 3d46772..05581f8 100644 --- a/dlls/combase/tests/roapi.c +++ b/dlls/combase/tests/roapi.c @@ -74,10 +74,10 @@ static void test_ActivationFactories(void) return; } - hr = pWindowsCreateString(xmldocumentW, sizeof(xmldocumentW)/sizeof(WCHAR) - 1, &str); + hr = pWindowsCreateString(xmldocumentW, ARRAY_SIZE(xmldocumentW) - 1, &str); ok(hr == S_OK, "got %08x\n", hr); - hr = pWindowsCreateString(nonexistW, sizeof(nonexistW)/sizeof(WCHAR) - 1, &str2); + hr = pWindowsCreateString(nonexistW, ARRAY_SIZE(nonexistW) - 1, &str2); ok(hr == S_OK, "got %08x\n", hr); hr = pRoInitialize(RO_INIT_MULTITHREADED);