[3/5] wbemprox: Support IClientSecurity on the class enumerator object;

Hans Leidekker hans at codeweavers.com
Thu Jun 28 02:24:42 CDT 2012


---
 dlls/wbemprox/class.c            |    5 +++++
 dlls/wbemprox/services.c         |    2 +-
 dlls/wbemprox/wbemprox_private.h |    2 ++
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/dlls/wbemprox/class.c b/dlls/wbemprox/class.c
index bb2c5e6..f32ee35 100644
--- a/dlls/wbemprox/class.c
+++ b/dlls/wbemprox/class.c
@@ -80,6 +80,11 @@ static HRESULT WINAPI enum_class_object_QueryInterface(
     {
         *ppvObject = ec;
     }
+    else if ( IsEqualGUID( riid, &IID_IClientSecurity ) )
+    {
+        *ppvObject = &client_security;
+        return S_OK;
+    }
     else
     {
         FIXME("interface %s not implemented\n", debugstr_guid(riid));
diff --git a/dlls/wbemprox/services.c b/dlls/wbemprox/services.c
index 05a9811..2e8a34a 100644
--- a/dlls/wbemprox/services.c
+++ b/dlls/wbemprox/services.c
@@ -130,7 +130,7 @@ static const IClientSecurityVtbl client_security_vtbl =
     client_security_CopyProxy
 };
 
-static IClientSecurity client_security = { &client_security_vtbl };
+IClientSecurity client_security = { &client_security_vtbl };
 
 struct wbem_services
 {
diff --git a/dlls/wbemprox/wbemprox_private.h b/dlls/wbemprox/wbemprox_private.h
index db3cb3a..6865ddd 100644
--- a/dlls/wbemprox/wbemprox_private.h
+++ b/dlls/wbemprox/wbemprox_private.h
@@ -19,6 +19,8 @@
 #include "wine/list.h"
 #include "wine/unicode.h"
 
+IClientSecurity client_security;
+
 #define SIZEOF(array) (sizeof(array)/sizeof((array)[0]))
 
 #define COL_TYPE_MASK    0x0000ffff
-- 
1.7.10







More information about the wine-patches mailing list