[PATCH v2 1/7] wbemprox: Add BuildType property to Win32_OperatingSystem.

Hans Leidekker hans at codeweavers.com
Thu Apr 28 05:43:19 CDT 2022


From: Louis Lenders <xerox.xerox2000x at gmail.com>

Wine-bug: https://bugs.winehq.org/show_bug.cgi?id=52887
Signed-off-by: Louis Lenders <xerox.xerox2000x at gmail.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
 dlls/wbemprox/builtin.c     | 3 +++
 dlls/wbemprox/tests/query.c | 1 +
 2 files changed, 4 insertions(+)

diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c
index 69d74d756f8..93b26c23dd3 100644
--- a/dlls/wbemprox/builtin.c
+++ b/dlls/wbemprox/builtin.c
@@ -229,6 +229,7 @@ static const struct column col_networkadapterconfig[] =
 static const struct column col_operatingsystem[] =
 {
     { L"BuildNumber",             CIM_STRING|COL_FLAG_DYNAMIC },
+    { L"BuildType",               CIM_STRING },
     { L"Caption",                 CIM_STRING|COL_FLAG_DYNAMIC },
     { L"CodeSet",                 CIM_STRING|COL_FLAG_DYNAMIC },
     { L"CountryCode",             CIM_STRING|COL_FLAG_DYNAMIC },
@@ -660,6 +661,7 @@ struct record_networkadapterconfig
 struct record_operatingsystem
 {
     const WCHAR *buildnumber;
+    const WCHAR *buildtype;
     const WCHAR *caption;
     const WCHAR *codeset;
     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->buildnumber            = get_osbuildnumber( &ver );
+    rec->buildtype              = L"Wine build";
     rec->caption                = get_oscaption( &ver );
     rec->codeset                = get_codeset();
     rec->countrycode            = get_countrycode();
diff --git a/dlls/wbemprox/tests/query.c b/dlls/wbemprox/tests/query.c
index e0fe78b7fd1..865d1b6136a 100644
--- a/dlls/wbemprox/tests/query.c
+++ b/dlls/wbemprox/tests/query.c
@@ -1389,6 +1389,7 @@ static void test_Win32_OperatingSystem( IWbemServices *services )
     ok( hr == S_OK, "got %#lx\n", hr );
 
     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 );
 
     type = 0xdeadbeef;
-- 
2.30.2




More information about the wine-devel mailing list