Commit c0ff1aec authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

ddraw: Pass the correct size to memset (Coccinelle).

parent 97c4ab23
......@@ -5090,7 +5090,7 @@ HRESULT IDirect3DImpl_GetCaps(IWineD3D *wined3d, D3DDEVICEDESC *desc1, D3DDEVICE
desc7->dwReserved4 = 0;
/* Fill the old structure */
memset(desc1, 0, sizeof(desc1));
memset(desc1, 0, sizeof(*desc1));
desc1->dwSize = sizeof(D3DDEVICEDESC);
desc1->dwFlags = D3DDD_COLORMODEL
| D3DDD_DEVCAPS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment