[PATCH 3/4] wined3d: Create device wined3d_state dynamically.
Henri Verbeet
hverbeet at gmail.com
Thu Feb 18 08:06:45 CST 2021
On Thu, 18 Feb 2021 at 13:31, Rémi Bernon <rbernon at codeweavers.com> wrote:
> @@ -6013,8 +6015,15 @@ HRESULT wined3d_device_init(struct wined3d_device *device, struct wined3d *wined
> return hr;
> }
>
> + if (!(state = heap_alloc(sizeof(*state))))
> + {
> + hr = E_OUTOFMEMORY;
> + goto err;
> + }
> + memset(state, 0, sizeof(*state));
That should probably use heap_alloc_zero().
More information about the wine-devel
mailing list