gdiplus: Implement GdipGetMetafileHeaderFromFile.

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:02 -05:00 committed by Alexandre Julliard
parent 368b4c47bb
commit b7956a89bd
1 changed files with 10 additions and 8 deletions

View File

@ -1799,19 +1799,21 @@ GpStatus WINGDIPAPI GdipGetMetafileHeaderFromWmf(HMETAFILE hwmf,
GpStatus WINGDIPAPI GdipGetMetafileHeaderFromFile(GDIPCONST WCHAR *filename,
MetafileHeader *header)
{
static int calls;
GpStatus status;
GpMetafile *metafile;
TRACE("(%s,%p)\n", debugstr_w(filename), header);
if(!filename || !header)
if (!filename || !header)
return InvalidParameter;
if(!(calls++))
FIXME("not implemented\n");
memset(header, 0, sizeof(MetafileHeader));
return Ok;
status = GdipCreateMetafileFromFile(filename, &metafile);
if (status == Ok)
{
status = GdipGetMetafileHeaderFromMetafile(metafile, header);
GdipDisposeImage(&metafile->image);
}
return status;
}
GpStatus WINGDIPAPI GdipGetMetafileHeaderFromStream(IStream *stream,