wbemprox: Add BuildType 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
622befd2a9
commit
552ac96c6a
|
@ -229,6 +229,7 @@ static const struct column col_networkadapterconfig[] =
|
||||||
static const struct column col_operatingsystem[] =
|
static const struct column col_operatingsystem[] =
|
||||||
{
|
{
|
||||||
{ L"BuildNumber", CIM_STRING|COL_FLAG_DYNAMIC },
|
{ L"BuildNumber", CIM_STRING|COL_FLAG_DYNAMIC },
|
||||||
|
{ L"BuildType", CIM_STRING },
|
||||||
{ L"Caption", CIM_STRING|COL_FLAG_DYNAMIC },
|
{ L"Caption", CIM_STRING|COL_FLAG_DYNAMIC },
|
||||||
{ L"CodeSet", CIM_STRING|COL_FLAG_DYNAMIC },
|
{ L"CodeSet", CIM_STRING|COL_FLAG_DYNAMIC },
|
||||||
{ L"CountryCode", CIM_STRING|COL_FLAG_DYNAMIC },
|
{ L"CountryCode", CIM_STRING|COL_FLAG_DYNAMIC },
|
||||||
|
@ -660,6 +661,7 @@ struct record_networkadapterconfig
|
||||||
struct record_operatingsystem
|
struct record_operatingsystem
|
||||||
{
|
{
|
||||||
const WCHAR *buildnumber;
|
const WCHAR *buildnumber;
|
||||||
|
const WCHAR *buildtype;
|
||||||
const WCHAR *caption;
|
const WCHAR *caption;
|
||||||
const WCHAR *codeset;
|
const WCHAR *codeset;
|
||||||
const WCHAR *countrycode;
|
const WCHAR *countrycode;
|
||||||
|
@ -3625,6 +3627,7 @@ static enum fill_status fill_operatingsystem( struct table *table, const struct
|
||||||
|
|
||||||
rec = (struct record_operatingsystem *)table->data;
|
rec = (struct record_operatingsystem *)table->data;
|
||||||
rec->buildnumber = get_osbuildnumber( &ver );
|
rec->buildnumber = get_osbuildnumber( &ver );
|
||||||
|
rec->buildtype = L"Wine build";
|
||||||
rec->caption = get_oscaption( &ver );
|
rec->caption = get_oscaption( &ver );
|
||||||
rec->codeset = get_codeset();
|
rec->codeset = get_codeset();
|
||||||
rec->countrycode = get_countrycode();
|
rec->countrycode = get_countrycode();
|
||||||
|
|
|
@ -1389,6 +1389,7 @@ static void test_Win32_OperatingSystem( IWbemServices *services )
|
||||||
ok( hr == S_OK, "got %#lx\n", hr );
|
ok( hr == S_OK, "got %#lx\n", hr );
|
||||||
|
|
||||||
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"Caption", VT_BSTR, CIM_STRING );
|
check_property( obj, L"Caption", VT_BSTR, CIM_STRING );
|
||||||
|
|
||||||
type = 0xdeadbeef;
|
type = 0xdeadbeef;
|
||||||
|
|
Loading…
Reference in New Issue