gdiplus: Implement GdipGetMetafileHeaderFromStream.

Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2016-09-14 14:57:01 -05:00 committed by Alexandre Julliard
parent 8c1ded6164
commit 368b4c47bb
1 changed files with 10 additions and 8 deletions

View File

@ -1817,19 +1817,21 @@ GpStatus WINGDIPAPI GdipGetMetafileHeaderFromFile(GDIPCONST WCHAR *filename,
GpStatus WINGDIPAPI GdipGetMetafileHeaderFromStream(IStream *stream,
MetafileHeader *header)
{
static int calls;
GpStatus status;
GpMetafile *metafile;
TRACE("(%p,%p)\n", stream, header);
if(!stream || !header)
if (!stream || !header)
return InvalidParameter;
if(!(calls++))
FIXME("not implemented\n");
memset(header, 0, sizeof(MetafileHeader));
return Ok;
status = GdipCreateMetafileFromStream(stream, &metafile);
if (status == Ok)
{
status = GdipGetMetafileHeaderFromMetafile(metafile, header);
GdipDisposeImage(&metafile->image);
}
return status;
}
GpStatus WINGDIPAPI GdipCreateMetafileFromEmf(HENHMETAFILE hemf, BOOL delete,