[Bug 51163] WinOffice Pro 5.3 stops after splashscreen, needs WMI class SoftwareLicensingProduct

WineHQ Bugzilla wine-bugs at winehq.org
Thu Jan 6 03:43:34 CST 2022


https://bugs.winehq.org/show_bug.cgi?id=51163

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|WinOffice Pro 5.3 stops     |WinOffice Pro 5.3 stops
                   |after splashscreen          |after splashscreen, needs
                   |                            |WMI class
                   |                            |SoftwareLicensingProduct
          Component|-unknown                    |wmi&wbemprox

--- Comment #2 from Louis Lenders <xerox.xerox2000x at gmail.com> ---
Quickly hacked up SoftwareLicensingProduct like below makes the program go
further (to run into msado15 bugs apparently). 
At least it shows 1st problem is missing SoftwareLicensingProduct so change
title accordingly. Haven`t got a clue how these values for LicenseStatus and
LicenseIsAddon would be retieved on windows.


diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c
index 6b63c744b69..d93024a471b 100644
--- a/dlls/wbemprox/builtin.c
+++ b/dlls/wbemprox/builtin.c
@@ -358,6 +358,11 @@ static const struct column col_quickfixengineering[] =
     { L"Caption",  CIM_STRING },
     { L"HotFixID", CIM_STRING|COL_FLAG_KEY },
 };
+static const struct column col_SoftwareLicensingProduct[] =
+{
+    { L"LicenseStatus",  CIM_UINT32 },
+    { L"LicenseIsAddon", CIM_BOOLEAN },
+};
 static const struct column col_rawsmbiostables[] =
 {
     { L"SMBiosData", CIM_UINT8|CIM_FLAG_ARRAY },
@@ -780,6 +785,12 @@ struct record_quickfixengineering
     const WCHAR *caption;
     const WCHAR *hotfixid;
 };
+
+struct record_SoftwareLicensingProduct
+{
+    UINT32 license_status;
+    int boolvalue;
+};
 struct record_rawsmbiostables
 {
     const struct array *smbiosdata;
@@ -978,6 +989,11 @@ static const struct record_quickfixengineering
data_quickfixengineering[] =
     { L"http://winehq.org", L"KB1234567" },
 };

+static const struct record_SoftwareLicensingProduct
data_SoftwareLicensingProduct[] =
+{
+    { 1, 0 },
+};
+
 static const struct record_stdregprov data_stdregprov[] =
 {
     {
@@ -4136,6 +4152,7 @@ static struct table cimv2_builtin_classes[] =
     { L"Win32_Process", C(col_process), 0, 0, NULL, fill_process },
     { L"Win32_Processor", C(col_processor), 0, 0, NULL, fill_processor },
     { L"Win32_QuickFixEngineering", C(col_quickfixengineering),
D(data_quickfixengineering) },
+    { L"SoftwareLicensingProduct", C(col_SoftwareLicensingProduct),
D(data_SoftwareLicensingProduct) },
     { L"Win32_SID", C(col_sid), 0, 0, NULL, fill_sid },
     { L"Win32_Service", C(col_service), 0, 0, NULL, fill_service },
     { L"Win32_SoundDevice", C(col_sounddevice), 0, 0, NULL, fill_sounddevice
},

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list