gdiplus: assignment used instead of memcpy

Nikolay Sivov bunglehead at gmail.com
Mon May 5 15:16:43 CDT 2008


Changelog:
    - assignment used instead of memcpy
    
---
 dlls/gdiplus/customlinecap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/customlinecap.c b/dlls/gdiplus/customlinecap.c
index e8e18bc..33e6b9a 100644
--- a/dlls/gdiplus/customlinecap.c
+++ b/dlls/gdiplus/customlinecap.c
@@ -39,7 +39,7 @@ GpStatus WINGDIPAPI GdipCloneCustomLineCap(GpCustomLineCap* from,
     *to = GdipAlloc(sizeof(GpCustomLineCap));
     if(!*to)   return OutOfMemory;
 
-    memcpy(*to, from, sizeof(GpCustomLineCap));
+    **to = *from;
 
     (*to)->pathdata.Points = GdipAlloc(from->pathdata.Count * sizeof(PointF));
     (*to)->pathdata.Types = GdipAlloc(from->pathdata.Count);
-- 
1.4.4.4






More information about the wine-patches mailing list