[PATCH] wbemprox: Implement Win32_OperatingSystem.Status.

Hans Leidekker hans at codeweavers.com
Fri Oct 15 03:41:28 CDT 2021


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 d76602f4930..58b5ed76dfa 100644
--- a/dlls/wbemprox/builtin.c
+++ b/dlls/wbemprox/builtin.c
@@ -251,6 +251,7 @@ static const struct column col_operatingsystem[] =
     { L"SerialNumber",            CIM_STRING|COL_FLAG_DYNAMIC },
     { L"ServicePackMajorVersion", CIM_UINT16 },
     { L"ServicePackMinorVersion", CIM_UINT16 },
+    { L"Status",                  CIM_STRING },
     { L"SuiteMask",               CIM_UINT32 },
     { L"SystemDirectory",         CIM_STRING|COL_FLAG_DYNAMIC },
     { L"SystemDrive",             CIM_STRING|COL_FLAG_DYNAMIC },
@@ -667,6 +668,7 @@ struct record_operatingsystem
     const WCHAR *serialnumber;
     UINT16       servicepackmajor;
     UINT16       servicepackminor;
+    const WCHAR *status;
     UINT32       suitemask;
     const WCHAR *systemdirectory;
     const WCHAR *systemdrive;
@@ -3598,6 +3600,7 @@ static enum fill_status fill_operatingsystem( struct table *table, const struct
     rec->serialnumber           = get_osserialnumber();
     rec->servicepackmajor       = ver.wServicePackMajor;
     rec->servicepackminor       = ver.wServicePackMinor;
+    rec->status                 = L"OK";
     rec->suitemask              = 272;     /* Single User + Terminal */
     rec->systemdirectory        = get_systemdirectory();
     rec->systemdrive            = get_systemdrive();
diff --git a/dlls/wbemprox/tests/query.c b/dlls/wbemprox/tests/query.c
index 5ca61cff825..b3a0e3c4534 100644
--- a/dlls/wbemprox/tests/query.c
+++ b/dlls/wbemprox/tests/query.c
@@ -1424,6 +1424,7 @@ static void test_Win32_OperatingSystem( IWbemServices *services )
     check_property( obj, L"Version", VT_BSTR, CIM_STRING );
     check_property( obj, L"TotalVisibleMemorySize", VT_BSTR, CIM_UINT64 );
     check_property( obj, L"TotalVirtualMemorySize", VT_BSTR, CIM_UINT64 );
+    check_property( obj, L"Status", VT_BSTR, CIM_STRING );
     check_property( obj, L"SystemDrive", VT_BSTR, CIM_STRING );
 
     IWbemClassObject_Release( obj );
-- 
2.30.2




More information about the wine-devel mailing list