Dmitry Timoshkov : windowscodecs: Implement GetContainerFormat for the TIFF metadata block reader.

Alexandre Julliard julliard at winehq.org
Wed Sep 12 13:39:16 CDT 2012


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

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Wed Sep 12 15:09:56 2012 +0900

windowscodecs: Implement GetContainerFormat for the TIFF metadata block reader.

---

 dlls/windowscodecs/tiffformat.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dlls/windowscodecs/tiffformat.c b/dlls/windowscodecs/tiffformat.c
index 3c5144d..05bd59e 100644
--- a/dlls/windowscodecs/tiffformat.c
+++ b/dlls/windowscodecs/tiffformat.c
@@ -1147,8 +1147,12 @@ static ULONG WINAPI TiffFrameDecode_Block_Release(IWICMetadataBlockReader *iface
 static HRESULT WINAPI TiffFrameDecode_Block_GetContainerFormat(IWICMetadataBlockReader *iface,
     GUID *guid)
 {
-    FIXME("(%p,%p): stub\n", iface, guid);
-    return E_NOTIMPL;
+    TRACE("(%p,%p)\n", iface, guid);
+
+    if (!guid) return E_INVALIDARG;
+
+    *guid = GUID_ContainerFormatTiff;
+    return S_OK;
 }
 
 static HRESULT WINAPI TiffFrameDecode_Block_GetCount(IWICMetadataBlockReader *iface,




More information about the wine-cvs mailing list