Andrew Talbot : gdiplus: Remove unneeded address-of operators from array names.

Alexandre Julliard julliard at winehq.org
Tue Nov 1 13:23:18 CDT 2011


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

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Mon Oct 31 21:19:29 2011 +0000

gdiplus: Remove unneeded address-of operators from array names.

---

 dlls/gdiplus/region.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/gdiplus/region.c b/dlls/gdiplus/region.c
index 0afbdbd..485c3a3 100644
--- a/dlls/gdiplus/region.c
+++ b/dlls/gdiplus/region.c
@@ -1420,7 +1420,7 @@ static GpStatus get_region_scans_data(GpRegion *region, GpMatrix *matrix, LPRGND
                     (*data)->rdh.rcBound.left = (*data)->rdh.rcBound.top = -0x400000;
                     (*data)->rdh.rcBound.right = (*data)->rdh.rcBound.bottom = 0x400000;
 
-                    memcpy(&(*data)->Buffer, &(*data)->rdh.rcBound, sizeof(RECT));
+                    memcpy((*data)->Buffer, &(*data)->rdh.rcBound, sizeof(RECT));
                 }
                 else
                     stat = OutOfMemory;
@@ -1469,7 +1469,7 @@ GpStatus WINGDIPAPI GdipGetRegionScansI(GpRegion *region, GpRect *scans, INT *co
     if (stat == Ok)
     {
         *count = data->rdh.nCount;
-        rects = (RECT*)&data->Buffer;
+        rects = (RECT*)data->Buffer;
 
         if (scans)
         {
@@ -1503,7 +1503,7 @@ GpStatus WINGDIPAPI GdipGetRegionScans(GpRegion *region, GpRectF *scans, INT *co
     if (stat == Ok)
     {
         *count = data->rdh.nCount;
-        rects = (RECT*)&data->Buffer;
+        rects = (RECT*)data->Buffer;
 
         if (scans)
         {




More information about the wine-cvs mailing list