https://git.reactos.org/?p=reactos.git;a=commitdiff;h=eb66324d7c66fe753627b…
commit eb66324d7c66fe753627b03969a426617a385aeb
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Sun Mar 22 23:22:48 2020 +0100
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Thu Mar 26 16:36:22 2020 +0100
[ISAPNP] Fix reporting of devices with hexadecimal productId
---
drivers/bus/isapnp/isapnp.c | 6 +++---
drivers/bus/isapnp/pdo.c | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/bus/isapnp/isapnp.c b/drivers/bus/isapnp/isapnp.c
index e8862345cc0..f810532921e 100644
--- a/drivers/bus/isapnp/isapnp.c
+++ b/drivers/bus/isapnp/isapnp.c
@@ -80,7 +80,7 @@ IsaFdoCreateDeviceIDs(
TempString.MaximumLength / sizeof(WCHAR),
&End,
NULL, 0,
- L"ISAPNP\\%3S%04X",
+ L"ISAPNP\\%.3S%04x",
LogDev->VendorId,
LogDev->ProdId);
if (!NT_SUCCESS(Status))
@@ -98,8 +98,8 @@ IsaFdoCreateDeviceIDs(
TempString.MaximumLength / sizeof(WCHAR),
&End,
NULL, 0,
- L"ISAPNP\\%3S%04X@"
- L"*%3S%04X@",
+ L"ISAPNP\\%.3S%04x@"
+ L"*%.3S%04x@",
LogDev->VendorId,
LogDev->ProdId,
LogDev->VendorId,
diff --git a/drivers/bus/isapnp/pdo.c b/drivers/bus/isapnp/pdo.c
index 7cd8c7d3812..6651cc54710 100644
--- a/drivers/bus/isapnp/pdo.c
+++ b/drivers/bus/isapnp/pdo.c
@@ -59,7 +59,7 @@ IsaPdoQueryCapabilities(
if (LogDev)
{
- DeviceCapabilities->UniqueID = LogDev->SerialNumber != 0xffffffff;
+ DeviceCapabilities->UniqueID = TRUE;
DeviceCapabilities->Address = LogDev->CSN;
}
else