[2/2] windowscodecs: Implement MetadataReaderInfo_GetVersion.

Dmitry Timoshkov dmitry at baikal.ru
Wed Jun 20 23:30:50 CDT 2012


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

diff --git a/dlls/windowscodecs/info.c b/dlls/windowscodecs/info.c
index a777276..b67eddd 100644
--- a/dlls/windowscodecs/info.c
+++ b/dlls/windowscodecs/info.c
@@ -1417,8 +1417,12 @@ static HRESULT WINAPI MetadataReaderInfo_GetVendorGUID(IWICMetadataReaderInfo *i
 static HRESULT WINAPI MetadataReaderInfo_GetVersion(IWICMetadataReaderInfo *iface,
     UINT length, WCHAR *version, UINT *actual_length)
 {
-    FIXME("(%p,%u,%p,%p): stub\n", iface, length, version, actual_length);
-    return E_NOTIMPL;
+    MetadataReaderInfo *This = impl_from_IWICMetadataReaderInfo(iface);
+
+    TRACE("(%p,%u,%p,%p)\n", iface, length, version, actual_length);
+
+    return ComponentInfo_GetStringValue(This->classkey, version_valuename,
+                                        length, version, actual_length);
 }
 
 static HRESULT WINAPI MetadataReaderInfo_GetSpecVersion(IWICMetadataReaderInfo *iface,
-- 
1.7.11




More information about the wine-patches mailing list