Hans Leidekker : wbemprox: Implement Win32_CDROMDrive.MediaType.

Alexandre Julliard julliard at winehq.org
Thu Apr 3 13:31:16 CDT 2014


Module: wine
Branch: master
Commit: 90c7893e0e1727c449ac0df924d70f0a16cbe606
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=90c7893e0e1727c449ac0df924d70f0a16cbe606

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Thu Apr  3 12:35:53 2014 +0200

wbemprox: Implement Win32_CDROMDrive.MediaType.

---

 dlls/wbemprox/builtin.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c
index 51c3261..87511be 100644
--- a/dlls/wbemprox/builtin.c
+++ b/dlls/wbemprox/builtin.c
@@ -299,6 +299,7 @@ static const struct column col_cdromdrive[] =
 {
     { prop_deviceidW,    CIM_STRING|COL_FLAG_KEY },
     { prop_driveW,       CIM_STRING|COL_FLAG_DYNAMIC },
+    { prop_mediatypeW,   CIM_STRING },
     { prop_nameW,        CIM_STRING },
     { prop_pnpdeviceidW, CIM_STRING }
 };
@@ -516,6 +517,8 @@ static const WCHAR bios_smbiosbiosversionW[] =
     {'W','i','n','e',0};
 static const WCHAR bios_versionW[] =
     {'W','I','N','E',' ',' ',' ','-',' ','1',0};
+static const WCHAR cdromdrive_mediatypeW[] =
+    {'C','D','-','R','O','M',0};
 static const WCHAR cdromdrive_nameW[] =
     {'W','i','n','e',' ','C','D','-','R','O','M',' ','A','T','A',' ','D','e','v','i','c','e',0};
 static const WCHAR cdromdrive_pnpdeviceidW[]=
@@ -601,6 +604,7 @@ struct record_cdromdrive
 {
     const WCHAR *device_id;
     const WCHAR *drive;
+    const WCHAR *mediatype;
     const WCHAR *name;
     const WCHAR *pnpdevice_id;
 };
@@ -920,6 +924,7 @@ static enum fill_status fill_cdromdrive( struct table *table, const struct expr
             rec->device_id    = cdromdrive_pnpdeviceidW;
             sprintfW( drive, fmtW, 'A' + i );
             rec->drive        = heap_strdupW( drive );
+            rec->mediatype    = cdromdrive_mediatypeW;
             rec->name         = cdromdrive_nameW;
             rec->pnpdevice_id = cdromdrive_pnpdeviceidW;
             if (!match_row( table, row, cond, &status ))




More information about the wine-cvs mailing list