wbemprox: Add BootDevice property to Win32_Operatingsystem.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52887 Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b901f9ca6c
commit
77fc1cd0c6
|
@ -228,6 +228,7 @@ static const struct column col_networkadapterconfig[] =
|
||||||
};
|
};
|
||||||
static const struct column col_operatingsystem[] =
|
static const struct column col_operatingsystem[] =
|
||||||
{
|
{
|
||||||
|
{ L"BootDevice", CIM_STRING },
|
||||||
{ L"BuildNumber", CIM_STRING|COL_FLAG_DYNAMIC },
|
{ L"BuildNumber", CIM_STRING|COL_FLAG_DYNAMIC },
|
||||||
{ L"BuildType", CIM_STRING },
|
{ L"BuildType", CIM_STRING },
|
||||||
{ L"Caption", CIM_STRING|COL_FLAG_DYNAMIC },
|
{ L"Caption", CIM_STRING|COL_FLAG_DYNAMIC },
|
||||||
|
@ -662,6 +663,7 @@ struct record_networkadapterconfig
|
||||||
};
|
};
|
||||||
struct record_operatingsystem
|
struct record_operatingsystem
|
||||||
{
|
{
|
||||||
|
const WCHAR *bootdevice;
|
||||||
const WCHAR *buildnumber;
|
const WCHAR *buildnumber;
|
||||||
const WCHAR *buildtype;
|
const WCHAR *buildtype;
|
||||||
const WCHAR *caption;
|
const WCHAR *caption;
|
||||||
|
@ -3651,6 +3653,7 @@ static enum fill_status fill_operatingsystem( struct table *table, const struct
|
||||||
RtlGetVersion( &ver );
|
RtlGetVersion( &ver );
|
||||||
|
|
||||||
rec = (struct record_operatingsystem *)table->data;
|
rec = (struct record_operatingsystem *)table->data;
|
||||||
|
rec->bootdevice = L"\\Device\\HarddiskVolume1";
|
||||||
rec->buildnumber = get_osbuildnumber( &ver );
|
rec->buildnumber = get_osbuildnumber( &ver );
|
||||||
rec->buildtype = L"Wine build";
|
rec->buildtype = L"Wine build";
|
||||||
rec->caption = get_oscaption( &ver );
|
rec->caption = get_oscaption( &ver );
|
||||||
|
|
|
@ -1388,6 +1388,7 @@ static void test_Win32_OperatingSystem( IWbemServices *services )
|
||||||
hr = IWbemClassObject_EndEnumeration( obj );
|
hr = IWbemClassObject_EndEnumeration( obj );
|
||||||
ok( hr == S_OK, "got %#lx\n", hr );
|
ok( hr == S_OK, "got %#lx\n", hr );
|
||||||
|
|
||||||
|
check_property( obj, L"BootDevice", VT_BSTR, CIM_STRING );
|
||||||
check_property( obj, L"BuildNumber", VT_BSTR, CIM_STRING );
|
check_property( obj, L"BuildNumber", VT_BSTR, CIM_STRING );
|
||||||
check_property( obj, L"BuildType", VT_BSTR, CIM_STRING );
|
check_property( obj, L"BuildType", VT_BSTR, CIM_STRING );
|
||||||
check_property( obj, L"Caption", VT_BSTR, CIM_STRING );
|
check_property( obj, L"Caption", VT_BSTR, CIM_STRING );
|
||||||
|
|
Loading…
Reference in New Issue