gdiplus: Implement GdipCreateMetafileFromFile.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f60d2b63cc
commit
b1e77d3fc8
|
@ -1922,8 +1922,22 @@ GpStatus WINGDIPAPI GdipCreateMetafileFromWmfFile(GDIPCONST WCHAR *file,
|
||||||
GpStatus WINGDIPAPI GdipCreateMetafileFromFile(GDIPCONST WCHAR *file,
|
GpStatus WINGDIPAPI GdipCreateMetafileFromFile(GDIPCONST WCHAR *file,
|
||||||
GpMetafile **metafile)
|
GpMetafile **metafile)
|
||||||
{
|
{
|
||||||
FIXME("(%p, %p): stub\n", file, metafile);
|
GpStatus status;
|
||||||
return NotImplemented;
|
IStream *stream;
|
||||||
|
|
||||||
|
TRACE("(%p, %p)\n", file, metafile);
|
||||||
|
|
||||||
|
if (!file || !metafile) return InvalidParameter;
|
||||||
|
|
||||||
|
*metafile = NULL;
|
||||||
|
|
||||||
|
status = GdipCreateStreamOnFile(file, GENERIC_READ, &stream);
|
||||||
|
if (status == Ok)
|
||||||
|
{
|
||||||
|
status = GdipCreateMetafileFromStream(stream, metafile);
|
||||||
|
IStream_Release(stream);
|
||||||
|
}
|
||||||
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipCreateMetafileFromStream(IStream *stream,
|
GpStatus WINGDIPAPI GdipCreateMetafileFromStream(IStream *stream,
|
||||||
|
|
Loading…
Reference in New Issue