[PATCH 1/5] wined3d: Decouple private data from the resource structure (try 5).

Henri Verbeet hverbeet at gmail.com
Thu Mar 6 11:58:03 CST 2014


On 6 March 2014 16:59, Stefan Dösinger <stefan at codeweavers.com> wrote:
> +static inline HRESULT wined3d_private_store_free_private_data(struct wined3d_private_store *store, const GUID *guid)
> +{
> +    struct wined3d_private_data *entry;
> +
> +    entry = wined3d_private_store_get_private_data(store, guid);
> +    if (!entry)
> +        return WINED3DERR_NOTFOUND;
> +
> +    if (entry->flags & WINED3DSPD_IUNKNOWN)
> +        IUnknown_Release(entry->content.object);
> +    else
> +        HeapFree(GetProcessHeap(), 0, entry->content.data);
> +
> +    list_remove(&entry->entry);
> +    HeapFree(GetProcessHeap(), 0, entry);
> +
> +    return WINED3D_OK;
> +}
I think it would make more sense to pass this a struct
wined3d_private_data pointer instead of a GUID.



More information about the wine-devel mailing list