Am 08.05.2016 um 22:09 schrieb Gerald Pfeifer:
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@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));
why not sizeof(str)?