Module: wine Branch: master Commit: dca427fded76dfc7c95c49df1a36ccb96e5d81bb URL: http://source.winehq.org/git/wine.git/?a=commit;h=dca427fded76dfc7c95c49df1a...
Author: Hans Leidekker hans@codeweavers.com Date: Fri Oct 12 14:24:54 2012 +0200
wbemprox: Implement Win32_LogicalDisk.Name.
---
dlls/wbemprox/builtin.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c index 5be3b2c..063c16d 100644 --- a/dlls/wbemprox/builtin.c +++ b/dlls/wbemprox/builtin.c @@ -247,6 +247,7 @@ static const struct column col_logicaldisk[] = { prop_drivetypeW, CIM_UINT32, VT_I4 }, { prop_filesystemW, CIM_STRING|COL_FLAG_DYNAMIC }, { prop_freespaceW, CIM_UINT64 }, + { prop_nameW, CIM_STRING|COL_FLAG_DYNAMIC }, { prop_sizeW, CIM_UINT64 } }; static const struct column col_networkadapter[] = @@ -421,6 +422,7 @@ struct record_logicaldisk UINT32 drivetype; const WCHAR *filesystem; UINT64 freespace; + const WCHAR *name; UINT64 size; }; struct record_networkadapter @@ -681,6 +683,7 @@ static void fill_logicaldisk( struct table *table ) rec->drivetype = type; rec->filesystem = get_filesystem( root ); rec->freespace = get_freespace( root, &size ); + rec->name = heap_strdupW( device_id ); rec->size = size; offset += sizeof(*rec); num_rows++;