Michael Stefaniuc : msxml3/tests: Use the ARRAY_SIZE() macro.
Module: wine Branch: master Commit: c743b72d250b3ad273d4885e5ff8e5181e7c793c URL: https://source.winehq.org/git/wine.git/?a=commit;h=c743b72d250b3ad273d4885e5... Author: Michael Stefaniuc <mstefani(a)winehq.org> Date: Thu Nov 15 20:42:13 2018 +0100 msxml3/tests: Use the ARRAY_SIZE() macro. Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/msxml3/tests/xmlview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msxml3/tests/xmlview.c b/dlls/msxml3/tests/xmlview.c index dc8ab7d..53eefcb 100644 --- a/dlls/msxml3/tests/xmlview.c +++ b/dlls/msxml3/tests/xmlview.c @@ -206,7 +206,7 @@ static void test_Load(void) BSTR source; lstrcpyW(buf, res); - GetModuleFileNameW(NULL, buf+lstrlenW(buf), (sizeof(buf)-sizeof(res))/sizeof(WCHAR)); + GetModuleFileNameW(NULL, buf+lstrlenW(buf), ARRAY_SIZE(buf)-ARRAY_SIZE(res)); lstrcatW(buf, xmlview_xmlW); if(!pCreateURLMoniker) {
participants (1)
-
Alexandre Julliard