[v5 PATCH 1/4] mfplat: Implement MFTRegister

Alexandre Julliard julliard at winehq.org
Mon May 8 15:17:58 CDT 2017


Alistair Leslie-Hughes <leslie_alistair at hotmail.com> writes:

> +    if (cinput && input_types)
> +    {
> +        size = cinput * sizeof(MFT_REGISTER_TYPE_INFO);
> +        types = HeapAlloc(GetProcessHeap(), 0, size);
> +        if (!types) goto err;
> +
> +        memcpy(types, input_types, size);
> +
> +        ret = RegSetValueExW(hclsid, inputtypesW, 0, REG_BINARY, (BYTE *)types, size);
> +        HeapFree(GetProcessHeap(), 0, types);
> +        if (ret) goto err;

Again, why do you need a copy?

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list