Vincent Povirk : windowscodecs: Implement trivial methods for BMP decoder.

Alexandre Julliard julliard at winehq.org
Mon Jun 29 09:17:48 CDT 2009


Module: wine
Branch: master
Commit: 6f86ceef499288eca963f959a63aa2fcf0051120
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6f86ceef499288eca963f959a63aa2fcf0051120

Author: Vincent Povirk <madewokherd at gmail.com>
Date:   Sat Jun 13 16:18:35 2009 -0500

windowscodecs: Implement trivial methods for BMP decoder.

---

 dlls/windowscodecs/bmpdecode.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/windowscodecs/bmpdecode.c b/dlls/windowscodecs/bmpdecode.c
index 2ab8034..a77d356 100644
--- a/dlls/windowscodecs/bmpdecode.c
+++ b/dlls/windowscodecs/bmpdecode.c
@@ -101,8 +101,8 @@ static HRESULT WINAPI BmpDecoder_Initialize(IWICBitmapDecoder *iface, IStream *p
 static HRESULT WINAPI BmpDecoder_GetContainerFormat(IWICBitmapDecoder *iface,
     GUID *pguidContainerFormat)
 {
-    FIXME("(%p,%p): stub\n", iface, pguidContainerFormat);
-    return E_NOTIMPL;
+    memcpy(pguidContainerFormat, &GUID_ContainerFormatBmp, sizeof(GUID));
+    return S_OK;
 }
 
 static HRESULT WINAPI BmpDecoder_GetDecoderInfo(IWICBitmapDecoder *iface,
@@ -150,8 +150,8 @@ static HRESULT WINAPI BmpDecoder_GetThumbnail(IWICBitmapDecoder *iface,
 static HRESULT WINAPI BmpDecoder_GetFrameCount(IWICBitmapDecoder *iface,
     UINT *pCount)
 {
-    FIXME("(%p,%p): stub\n", iface, pCount);
-    return E_NOTIMPL;
+    *pCount = 1;
+    return S_OK;
 }
 
 static HRESULT WINAPI BmpDecoder_GetFrame(IWICBitmapDecoder *iface,




More information about the wine-cvs mailing list