gdiplus: Allocate a new ImageAttributes object in GdipCloneImageAttributes.
This commit is contained in:
parent
f8ca372459
commit
149c44eb4c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue