[5/7] wmiutils: Implement IWbemPath::GetNamespaceCount.

Hans Leidekker hans at codeweavers.com
Wed Jan 2 06:34:17 CST 2013


---
 dlls/wmiutils/path.c |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/dlls/wmiutils/path.c b/dlls/wmiutils/path.c
index 0d52544..0cb7170 100644
--- a/dlls/wmiutils/path.c
+++ b/dlls/wmiutils/path.c
@@ -268,8 +268,13 @@ static HRESULT WINAPI path_GetNamespaceCount(
     IWbemPath *iface,
     ULONG *puCount)
 {
-    FIXME("%p, %p\n", iface, puCount);
-    return E_NOTIMPL;
+    struct path *path = impl_from_IWbemPath( iface );
+
+    TRACE("%p, %p\n", iface, puCount);
+
+    if (!puCount) return WBEM_E_INVALID_PARAMETER;
+    *puCount = path->num_namespaces;
+    return S_OK;
 }
 
 static HRESULT WINAPI path_SetNamespaceAt(
-- 
1.7.10.4







More information about the wine-patches mailing list