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

This commit is contained in:
Paul Vriens 2010-09-21 14:37:38 +02:00 committed by Alexandre Julliard
parent 97c4ab23ab
commit c0ff1aec03
1 changed files with 1 additions and 1 deletions

View File

@ -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