From: Gerald Pfeifer Subject: fusion: Clear all memory for the pathname in test_assembly_name_props_line. Message-Id: Date: Sun, 8 May 2016 22:09:18 +0200 (CEST) str is declared WCHAR str[MAX_PATH], so we need to account for the size of WCHAR when clearing memory. Gerald Signed-off-by: Gerald Pfeifer --- dlls/fusion/tests/asmname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/fusion/tests/asmname.c b/dlls/fusion/tests/asmname.c index e415c3a9..8962630 100644 --- a/dlls/fusion/tests/asmname.c +++ b/dlls/fusion/tests/asmname.c @@ -358,7 +358,7 @@ static void test_assembly_name_props_line(IAssemblyName *name, to_widechar(expect, vals[i].val); size = MAX_PATH; - ZeroMemory(str, MAX_PATH); + ZeroMemory(str, MAX_PATH*sizeof(WCHAR)); hr = IAssemblyName_GetProperty(name, i, str, &size); to_multibyte(val, str); -- 2.8.1