mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[ISAPNP] Fix reading of serial number
This commit is contained in:
parent
111721a64a
commit
58e8be6258
2 changed files with 3 additions and 3 deletions
|
@ -516,11 +516,11 @@ ProbeIsaPnpBus(PISAPNP_FDO_EXTENSION FdoExt)
|
|||
LogDevice->VendorId[1] = (((LogDevId.VendorId & 0x3) << 3) | ((LogDevId.VendorId >> 13) & 0x7)) + 'A' - 1,
|
||||
LogDevice->VendorId[2] = ((LogDevId.VendorId >> 8) & 0x1f) + 'A' - 1,
|
||||
LogDevice->ProdId = RtlUshortByteSwap(LogDevId.ProdId);
|
||||
LogDevice->SerialNumber = RtlUlongByteSwap(Identifier.Serial);
|
||||
LogDevice->SerialNumber = Identifier.Serial;
|
||||
LogDevice->IoAddr = ReadIoBase(FdoExt->ReadDataPort, 0);
|
||||
LogDevice->IrqNo = ReadIrqNo(FdoExt->ReadDataPort, 0);
|
||||
|
||||
DPRINT1("Detected ISA PnP device - VID: '%3s' PID: 0x%x SN: 0x04x IoBase: 0x%x IRQ:0x%x\n",
|
||||
DPRINT1("Detected ISA PnP device - VID: '%3s' PID: 0x%x SN: 0x%08x IoBase: 0x%x IRQ:0x%x\n",
|
||||
LogDevice->VendorId, LogDevice->ProdId, LogDevice->SerialNumber, LogDevice->IoAddr, LogDevice->IrqNo);
|
||||
|
||||
WaitForKey();
|
||||
|
|
|
@ -114,7 +114,7 @@ IsaPdoQueryId(
|
|||
Status = RtlStringCbPrintfExW(Temp, sizeof(Temp),
|
||||
&End,
|
||||
NULL, 0,
|
||||
L"%u",
|
||||
L"%X",
|
||||
LogDev->SerialNumber);
|
||||
if (!NT_SUCCESS(Status))
|
||||
return Status;
|
||||
|
|
Loading…
Reference in a new issue