Dmitry Timoshkov : windowscodecs: Implement MetadataHandler_GetCount.

Alexandre Julliard julliard at winehq.org
Fri Jun 8 13:36:14 CDT 2012


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

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Fri Jun  8 14:08:42 2012 +0900

windowscodecs: Implement MetadataHandler_GetCount.

---

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

diff --git a/dlls/windowscodecs/metadatahandler.c b/dlls/windowscodecs/metadatahandler.c
index 013fe04..da70b1c 100644
--- a/dlls/windowscodecs/metadatahandler.c
+++ b/dlls/windowscodecs/metadatahandler.c
@@ -149,10 +149,14 @@ static HRESULT WINAPI MetadataHandler_GetMetadataHandlerInfo(IWICMetadataWriter
 static HRESULT WINAPI MetadataHandler_GetCount(IWICMetadataWriter *iface,
     UINT *pcCount)
 {
+    MetadataHandler *This = impl_from_IWICMetadataWriter(iface);
+
+    TRACE("%p,%p\n", iface, pcCount);
+
     if (!pcCount) return E_INVALIDARG;
 
-    FIXME("(%p,%p): stub\n", iface, pcCount);
-    return E_NOTIMPL;
+    *pcCount = This->item_count;
+    return S_OK;
 }
 
 static HRESULT WINAPI MetadataHandler_GetValueByIndex(IWICMetadataWriter *iface,




More information about the wine-cvs mailing list