Paul Vriens : ddraw: Pass the correct size to memset (Coccinelle).
Alexandre Julliard
julliard at winehq.org
Tue Sep 21 13:59:30 CDT 2010
Module: wine
Branch: master
Commit: c0ff1aec0362a15bc44160e44d45051662c67b68
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c0ff1aec0362a15bc44160e44d45051662c67b68
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Tue Sep 21 14:37:38 2010 +0200
ddraw: Pass the correct size to memset (Coccinelle).
---
dlls/ddraw/ddraw.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c
index 7552144..f3ebade 100644
--- a/dlls/ddraw/ddraw.c
+++ b/dlls/ddraw/ddraw.c
@@ -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
More information about the wine-cvs
mailing list