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(®ion);
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.