On Thu, 18 Feb 2021 at 13:31, RĂ©mi Bernon rbernon@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().