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,
|
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)
|
||||||
|
|
Loading…
Reference in New Issue