Re: fusion: Clear all memory for the pathname in test_assembly_name_props_line.
10 May
2016
10 May
'16
5:37 p.m.
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(a)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)?
3593
Age (days ago)
3593
Last active (days ago)
0 comments
1 participants
participants (1)
-
André Hentschel