wbemprox: support for getting methods from WBEM objects

Daniel Jelinski djelinski1 at gmail.com
Tue Oct 9 13:30:37 CDT 2012


-------------- next part --------------
From e26afd36611dbec2dfcf3d1fb929171df6754303 Mon Sep 17 00:00:00 2001
From: Daniel Jelinski <djelinski1 at gmail.com>
Date: Wed, 3 Oct 2012 23:22:03 +0200
Subject: wbemprox: support for getting methods from WBEM objects

allows wbem_services_ExecMethod to find method address
---
 dlls/wbemprox/table.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/wbemprox/table.c b/dlls/wbemprox/table.c
index c414aa9..71c62c8 100644
--- a/dlls/wbemprox/table.c
+++ b/dlls/wbemprox/table.c
@@ -63,6 +63,7 @@ UINT get_type_size( CIMTYPE type )
         return sizeof(INT64);
     case CIM_DATETIME:
     case CIM_STRING:
+    case CIM_OBJECT:
         return sizeof(WCHAR *);
     default:
         ERR("unhandled type %u\n", type);
@@ -92,7 +93,6 @@ HRESULT get_value( const struct table *table, UINT row, UINT column, LONGLONG *v
 {
     UINT col_offset, row_size;
     const BYTE *ptr;
-
     col_offset = get_column_offset( table, column );
     row_size = get_row_size( table );
     ptr = table->data + row * row_size + col_offset;
@@ -109,6 +109,7 @@ HRESULT get_value( const struct table *table, UINT row, UINT column, LONGLONG *v
         break;
     case CIM_DATETIME:
     case CIM_STRING:
+    case CIM_OBJECT:
         *val = (LONGLONG)(INT_PTR)*(const WCHAR **)ptr;
         break;
     case CIM_SINT16:
-- 
1.7.5.4


More information about the wine-patches mailing list