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,
GpImageAttributes **cloneImageattr)
{
GpStatus stat;
TRACE("(%p, %p)\n", imageattr, cloneImageattr);
if(!imageattr || !cloneImageattr)
return InvalidParameter;
**cloneImageattr = *imageattr;
stat = GdipCreateImageAttributes(cloneImageattr);
return Ok;
if (stat == Ok)
**cloneImageattr = *imageattr;
return stat;
}
GpStatus WINGDIPAPI GdipCreateImageAttributes(GpImageAttributes **imageattr)