Hans Leidekker : wmiutils: Implement IWbemPathKeyList::GetCount.
Alexandre Julliard
julliard at winehq.org
Thu Feb 21 14:29:36 CST 2013
Module: wine
Branch: master
Commit: 13974194709e678e82144e1dc7aa0f8b84e8f2bb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=13974194709e678e82144e1dc7aa0f8b84e8f2bb
Author: Hans Leidekker <hans at codeweavers.com>
Date: Thu Feb 21 10:46:19 2013 +0100
wmiutils: Implement IWbemPathKeyList::GetCount.
---
dlls/wmiutils/path.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/dlls/wmiutils/path.c b/dlls/wmiutils/path.c
index 5f64aa0..98f22db 100644
--- a/dlls/wmiutils/path.c
+++ b/dlls/wmiutils/path.c
@@ -116,8 +116,19 @@ static HRESULT WINAPI keylist_GetCount(
IWbemPathKeyList *iface,
ULONG *puKeyCount )
{
- FIXME("%p, %p\n", iface, puKeyCount);
- return E_NOTIMPL;
+ struct keylist *keylist = impl_from_IWbemPathKeyList( iface );
+ struct path *parent = impl_from_IWbemPath( keylist->parent );
+
+ TRACE("%p, %p\n", iface, puKeyCount);
+
+ if (!puKeyCount) return WBEM_E_INVALID_PARAMETER;
+
+ EnterCriticalSection( &parent->cs );
+
+ *puKeyCount = parent->num_keys;
+
+ LeaveCriticalSection( &parent->cs );
+ return S_OK;
}
static HRESULT WINAPI keylist_SetKey(
More information about the wine-cvs
mailing list