File 0005-Add-PNPDeviceId-to-Win32_PnPEntity.patch of Package wine

From 74fe2d44e5ac63fc650392483f83b6661fb7758c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
Date: Sun, 26 Jan 2025 11:53:32 +0100
Subject: [PATCH 5/7] Add PNPDeviceId to Win32_PnPEntity

For PnPEntities, the PNPDeviceId is identical to the DeviceId.
---
 dlls/wbemprox/builtin.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c
index 39373bde443..10e56999050 100644
--- a/dlls/wbemprox/builtin.c
+++ b/dlls/wbemprox/builtin.c
@@ -315,6 +315,7 @@ static const struct column col_pnpentity[] =
     { L"Manufacturer",         CIM_STRING },
     { L"Name",                 CIM_STRING|COL_FLAG_DYNAMIC },
     { L"Service",              CIM_STRING|COL_FLAG_DYNAMIC },
+    { L"PNPDeviceId",          CIM_STRING|COL_FLAG_DYNAMIC },
 };
 static const struct column col_printer[] =
 {
@@ -820,6 +821,7 @@ struct record_pnpentity
     const WCHAR *manufacturer;
     const WCHAR *name;
     const WCHAR *service;
+    const WCHAR *pnpdevice_id;
 };
 struct record_printer
 {
@@ -3421,6 +3423,7 @@ static enum fill_status fill_pnpentity( struct table *table, const struct expr *
         rec->caption      = entities[i].caption;
         rec->class_guid   = entities[i].class_guid;
         rec->device_id    = entities[i].device_id;
+        rec->pnpdevice_id = entities[i].device_id;
         rec->manufacturer = entities[i].manufacturer;
         rec->name         = entities[i].name;
         rec->service      = entities[i].service;
-- 
2.49.0

openSUSE Build Service is sponsored by