fusion: Clear all memory for the pathname in test_assembly_name_props_line.

Gerald Pfeifer gerald at pfeifer.com
Sun May 8 15:09:18 CDT 2016


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 <gerald at pfeifer.com>
---
 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



More information about the wine-patches mailing list