[4/4] wbemprox: Implement Win32_VideoController.Description.

Hans Leidekker hans at codeweavers.com
Mon Sep 17 05:19:30 CDT 2012


Fixes http://bugs.winehq.org/show_bug.cgi?id=31514
---
 dlls/wbemprox/builtin.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c
index 41a31f3..5434fc5 100644
--- a/dlls/wbemprox/builtin.c
+++ b/dlls/wbemprox/builtin.c
@@ -287,6 +287,7 @@ static const struct column col_videocontroller[] =
     { prop_currentbitsperpixelW,  CIM_UINT32 },
     { prop_currenthorizontalresW, CIM_UINT32 },
     { prop_currentverticalresW,   CIM_UINT32 },
+    { prop_descriptionW,          CIM_STRING|COL_FLAG_DYNAMIC },
     { prop_deviceidW,             CIM_STRING|COL_FLAG_KEY },
     { prop_nameW,                 CIM_STRING|COL_FLAG_DYNAMIC }
 };
@@ -428,6 +429,7 @@ struct record_videocontroller
     UINT32       current_bitsperpixel;
     UINT32       current_horizontalres;
     UINT32       current_verticalres;
+    const WCHAR *description;
     const WCHAR *device_id;
     const WCHAR *name;
 };
@@ -1050,6 +1052,7 @@ done:
     rec->current_bitsperpixel  = get_bits_per_pixel( &hres, &vres );
     rec->current_horizontalres = hres;
     rec->current_verticalres   = vres;
+    rec->description           = heap_strdupW( name );
     rec->device_id             = videocontroller_deviceidW;
     rec->name                  = heap_strdupW( name );
 
-- 
1.7.10.4






More information about the wine-patches mailing list