gdiplus: Allocate a new ImageAttributes object in GdipCloneImageAttributes.

This commit is contained in:
Vincent Povirk 2009-12-18 15:18:49 -06:00 committed by Alexandre Julliard
parent f8ca372459
commit 149c44eb4c
1 changed files with 7 additions and 2 deletions

View File

@ -30,14 +30,19 @@ WINE_DEFAULT_DEBUG_CHANNEL(gdiplus);
GpStatus WINGDIPAPI GdipCloneImageAttributes(GDIPCONST GpImageAttributes *imageattr, GpStatus WINGDIPAPI GdipCloneImageAttributes(GDIPCONST GpImageAttributes *imageattr,
GpImageAttributes **cloneImageattr) GpImageAttributes **cloneImageattr)
{ {
GpStatus stat;
TRACE("(%p, %p)\n", imageattr, cloneImageattr); TRACE("(%p, %p)\n", imageattr, cloneImageattr);
if(!imageattr || !cloneImageattr) if(!imageattr || !cloneImageattr)
return InvalidParameter; return InvalidParameter;
stat = GdipCreateImageAttributes(cloneImageattr);
if (stat == Ok)
**cloneImageattr = *imageattr; **cloneImageattr = *imageattr;
return Ok; return stat;
} }
GpStatus WINGDIPAPI GdipCreateImageAttributes(GpImageAttributes **imageattr) GpStatus WINGDIPAPI GdipCreateImageAttributes(GpImageAttributes **imageattr)