Michael Stefaniuc : ddraw: Remove redundant memset.

Alexandre Julliard julliard at winehq.org
Mon Mar 15 12:19:31 CDT 2010


Module: wine
Branch: master
Commit: 67a2751b94e95130de8ae707c890450466a1a5ae
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=67a2751b94e95130de8ae707c890450466a1a5ae

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Mar  9 23:48:31 2010 +0100

ddraw: Remove redundant memset.

---

 dlls/ddraw/executebuffer.c |    2 --
 dlls/ddraw/material.c      |    1 -
 2 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/dlls/ddraw/executebuffer.c b/dlls/ddraw/executebuffer.c
index 2f42688..129a0b8 100644
--- a/dlls/ddraw/executebuffer.c
+++ b/dlls/ddraw/executebuffer.c
@@ -703,7 +703,6 @@ IDirect3DExecuteBufferImpl_Lock(IDirect3DExecuteBuffer *iface,
     TRACE("(%p)->(%p)\n", This, lpDesc);
 
     dwSize = lpDesc->dwSize;
-    memset(lpDesc, 0, dwSize);
     memcpy(lpDesc, &This->desc, dwSize);
 
     if (TRACE_ON(d3d7)) {
@@ -789,7 +788,6 @@ IDirect3DExecuteBufferImpl_GetExecuteData(IDirect3DExecuteBuffer *iface,
     TRACE("(%p)->(%p): stub!\n", This, lpData);
 
     dwSize = lpData->dwSize;
-    memset(lpData, 0, dwSize);
     memcpy(lpData, &This->data, dwSize);
 
     if (TRACE_ON(d3d7)) {
diff --git a/dlls/ddraw/material.c b/dlls/ddraw/material.c
index 6f162f7..d75501e 100644
--- a/dlls/ddraw/material.c
+++ b/dlls/ddraw/material.c
@@ -294,7 +294,6 @@ IDirect3DMaterialImpl_GetMaterial(IDirect3DMaterial3 *iface,
     /* Copies the material structure */
     EnterCriticalSection(&ddraw_cs);
     dwSize = lpMat->dwSize;
-    memset(lpMat, 0, dwSize);
     memcpy(lpMat, &This->mat, dwSize);
     LeaveCriticalSection(&ddraw_cs);
 




More information about the wine-cvs mailing list