[2/6] gdiplus: move some TRACE() higher in region.c
Nikolay Sivov
bunglehead at gmail.com
Wed Aug 27 14:30:51 CDT 2008
Changelog:
- Move some TRACE(..) higher in region.c
---
dlls/gdiplus/region.c | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/dlls/gdiplus/region.c b/dlls/gdiplus/region.c
index addc2d2..5f40dfe 100644
--- a/dlls/gdiplus/region.c
+++ b/dlls/gdiplus/region.c
@@ -350,11 +350,11 @@ GpStatus WINGDIPAPI GdipCombineRegionRegion(GpRegion *region1,
GpStatus WINGDIPAPI GdipCreateRegion(GpRegion **region)
{
+ TRACE("%p\n", region);
+
if(!region)
return InvalidParameter;
- TRACE("%p\n", region);
-
*region = GdipAlloc(sizeof(GpRegion));
if(!*region)
return OutOfMemory;
@@ -692,10 +692,11 @@ GpStatus WINGDIPAPI GdipGetRegionData(GpRegion *region, BYTE *buffer, UINT size,
{
INT filled = 0;
+ TRACE("%p, %p, %d, %p\n", region, buffer, size, needed);
+
if (!(region && buffer && size))
return InvalidParameter;
- TRACE("%p, %p, %d, %p\n", region, buffer, size, needed);
memcpy(buffer, ®ion->header, sizeof(region->header));
filled += sizeof(region->header) / sizeof(DWORD);
/* With few exceptions, everything written is DWORD aligned,
@@ -710,11 +711,11 @@ GpStatus WINGDIPAPI GdipGetRegionData(GpRegion *region, BYTE *buffer, UINT size,
GpStatus WINGDIPAPI GdipGetRegionDataSize(GpRegion *region, UINT *needed)
{
+ TRACE("%p, %p\n", region, needed);
+
if (!(region && needed))
return InvalidParameter;
- TRACE("%p, %p\n", region, needed);
-
/* header.size doesn't count header.size and header.checksum */
*needed = region->header.size + sizeof(DWORD) * 2;
@@ -779,11 +780,11 @@ GpStatus WINGDIPAPI GdipSetInfinite(GpRegion *region)
{
GpStatus stat;
+ TRACE("%p\n", region);
+
if (!region)
return InvalidParameter;
- TRACE("%p\n", region);
-
delete_element(®ion->node);
stat = init_region(region, RegionDataInfiniteRect);
--
1.4.4.4
More information about the wine-patches
mailing list