[PATCH] use correct size for ZeroMemory (GCC7)

Dmitry Timoshkov dmitry at baikal.ru
Fri Jun 2 03:55:27 CDT 2017


Marcus Meissner <meissner at 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.



More information about the wine-devel mailing list