ddraw: Pass the correct size to memset (Coccinelle).
This commit is contained in:
parent
97c4ab23ab
commit
c0ff1aec03
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue