Module: wine Branch: master Commit: a3edb733a773ea37c1754eed8ee769be40a6c926 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a3edb733a773ea37c1754eed8e...
Author: Tony Wasserka tony.wasserka@freenet.de Date: Fri Aug 21 11:12:03 2009 +0200
windowscodecs: Support Stat for memory streams in IWICStream.
---
dlls/windowscodecs/stream.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/stream.c b/dlls/windowscodecs/stream.c index ebf64cb..ba1b2a6 100644 --- a/dlls/windowscodecs/stream.c +++ b/dlls/windowscodecs/stream.c @@ -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 */