[Gdiplus 02/15] Implement GdipCreateRegion

Huw Davies h.davies1 at physics.ox.ac.uk
Sat Jul 19 06:20:12 CDT 2008


Adam Petaccia wrote:
 > @@ -226,6 +277,11 @@ GpStatus WINGDIPAPI GdipSetEmpty(GpRegion*region)
 >
 >      if(!(calls++))
 >          FIXME("not implemented\n");
 > +    TRACE("%p\n", region);
 > +
 > +    GdipDeleteRegion(region);
 > +    GdipCreateRegion(&region);
 > +    region->node->type = RegionDataEmptyRect;
 >
 >      return NotImplemented;
 >  }

This can't work.

You don't want to free the memory pointed to by region, simply free the 
nodes underneath it.

Huw.





More information about the wine-devel mailing list