gdiplus: Implement GdipGetMetafileHeaderFromStream.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8c1ded6164
commit
368b4c47bb
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue