Re: [PATCH] use correct size for ZeroMemory (GCC7)
2 Jun
2017
2 Jun
'17
8:55 a.m.
Marcus Meissner <meissner(a)suse.de> wrote:
--- 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, sizeof(str)); hr = IAssemblyName_GetProperty(name, i, str, &size); to_multibyte(val, str);
According to the implementation of IAssemblyName_GetProperty() 'size' assignment needs to be fixed as well. And IAssemblyName_GetProperty() implementation should be fixed to actually take 'size' into account. -- Dmitry.
3116
Age (days ago)
3116
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov