[PATCH] fusion: use correct size for ZeroMemory (GCC7)
Dmitry Timoshkov
dmitry at baikal.ru
Fri Jun 2 03:58:50 CDT 2017
Marcus Meissner <meissner at suse.de> wrote:
> diff --git a/dlls/fusion/tests/asmname.c b/dlls/fusion/tests/asmname.c
> index 5fb14a4829..21cd4874ed 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, sizeof(str));
> hr = IAssemblyName_GetProperty(name, i, str, &size);
> to_multibyte(val, str);
Same problem with IAssemblyName_GetProperty() and 'size' argumenet as
for the previous patch.
--
Dmitry.
More information about the wine-devel
mailing list