[PATCH] wbemprox: Add 'Manufacturer' and 'Name' properties to Win32_PnPEntity class.

Eduard Permyakov epermyakov at codeweavers.com
Wed Oct 13 03:00:03 CDT 2021


Signed-off-by: Eduard Permyakov <epermyakov at codeweavers.com>
---
 dlls/wbemprox/builtin.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c
index 442a9015951..d76602f4930 100644
--- a/dlls/wbemprox/builtin.c
+++ b/dlls/wbemprox/builtin.c
@@ -286,7 +286,9 @@ static const struct column col_physicalmemory[] =
 };
 static const struct column col_pnpentity[] =
 {
-    { L"DeviceId", CIM_STRING|COL_FLAG_DYNAMIC },
+    { L"DeviceId",             CIM_STRING|COL_FLAG_DYNAMIC },
+    { L"Manufacturer",         CIM_STRING },
+    { L"Name",                 CIM_STRING },
 };
 static const struct column col_printer[] =
 {
@@ -701,6 +703,8 @@ struct record_physicalmemory
 struct record_pnpentity
 {
     const WCHAR *device_id;
+    const WCHAR *manufacturer;
+    const WCHAR *name;
 };
 struct record_printer
 {
@@ -3063,6 +3067,8 @@ static enum fill_status fill_pnpentity( struct table *table, const struct expr *
                     ARRAY_SIZE(device_id), NULL ))
         {
             rec->device_id = heap_strdupW( device_id );
+            rec->manufacturer = L"The Wine Project";
+            rec->name = L"Wine PnP Device";
 
             table->num_rows++;
             if (!match_row( table, table->num_rows - 1, cond, &status ))
-- 
2.25.1




More information about the wine-devel mailing list