Commit a3edb733 authored by Tony Wasserka's avatar Tony Wasserka Committed by Alexandre Julliard

windowscodecs: Support Stat for memory streams in IWICStream.

parent 23952023
......@@ -194,8 +194,16 @@ static HRESULT WINAPI StreamOnMemory_UnlockRegion(IStream *iface,
static HRESULT WINAPI StreamOnMemory_Stat(IStream *iface,
STATSTG *pstatstg, DWORD grfStatFlag)
{
FIXME("(%p): stub\n", iface);
return E_NOTIMPL;
StreamOnMemory *This = (StreamOnMemory*)iface;
TRACE("(%p)\n", This);
if (!pstatstg) return E_INVALIDARG;
ZeroMemory(pstatstg, sizeof(STATSTG));
pstatstg->type = STGTY_STREAM;
pstatstg->cbSize.QuadPart = This->dwMemsize;
return S_OK;
}
/* Clone isn't implemented in the native windowscodecs DLL either */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment