Skip to content

Commit 5f89af7

Browse files
authored
Merge pull request #6 from mipresmsft/mipres-FixPCISubsysQuery
Fix Windows PCI subsystem ID string generation.
2 parents 7ee9ff3 + 9b0d068 commit 5f89af7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/WmiQuery.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace
4747
// <https://docs.microsoft.com/en-us/windows-hardware/drivers/install/identifiers-for-pci-devices>
4848
// and insert wildcards for the subsystem vendor ID (if absent) and the device instance
4949
return fmt::format(
50-
L"PCI\\\\VEN_{:0>4X}&DEV_{:0>4X}&SUBSYS_{:0>4X}{}&REV_{:0>2X}%",
50+
L"PCI\\\\VEN_{:0>4X}&DEV_{:0>4X}&SUBSYS_{:0>8X}{}&REV_{:0>2X}%",
5151
dxHardwareID.vendorID,
5252
dxHardwareID.deviceID,
5353
dxHardwareID.subSysID,

0 commit comments

Comments
 (0)