[1/2] windowscodecs: Implement GetContainerFormat for the TIFF metadata block reader.

Dmitry Timoshkov dmitry at baikal.ru
Wed Sep 12 01:09:56 CDT 2012


---
 dlls/windowscodecs/tiffformat.c | 8 ++++++--
 1 file 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,
-- 
1.7.11.5




More information about the wine-patches mailing list