Evan Stade : gdiplus: Fixed bug in GdipGetPathPoints().

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jul 10 08:02:40 CDT 2007


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

Author: Evan Stade <estade at gmail.com>
Date:   Mon Jul  9 20:54:43 2007 -0700

gdiplus: Fixed bug in GdipGetPathPoints().

---

 dlls/gdiplus/graphicspath.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c
index 4f7d1ef..7c0e826 100644
--- a/dlls/gdiplus/graphicspath.c
+++ b/dlls/gdiplus/graphicspath.c
@@ -152,7 +152,7 @@ GpStatus WINGDIPAPI GdipGetPathPoints(GpPath *path, GpPointF* points, INT count)
     if(count < path->pathdata.Count)
         return InsufficientBuffer;
 
-    memcpy(points, path->pathdata.Points, path->pathdata.Count);
+    memcpy(points, path->pathdata.Points, path->pathdata.Count * sizeof(GpPointF));
 
     return Ok;
 }




More information about the wine-cvs mailing list