[4/9] windowscodecs: implement trivial methods for BMP decoder

Vincent Povirk madewokherd+8cd9 at gmail.com
Sat Jun 27 20:49:38 CDT 2009


Vincent Povirk
-------------- next part --------------
From 673c20fdec1335bf56fe38d7379a519d50b99b6d Mon Sep 17 00:00:00 2001
From: Vincent Povirk <madewokherd at gmail.com>
Date: Sat, 13 Jun 2009 16:18:35 -0500
Subject: [PATCH 4/9] 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 52ffb80..4bcd753 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,
-- 
1.6.3.1


More information about the wine-patches mailing list