mirror of
https://github.com/reactos/reactos.git
synced 2024-07-04 11:44:33 +00:00
[HAL]
- Fix a broken loop that resulted in us registering the resources of multiple COM ports as our KD port - Fixes bug #5530 svn path=/trunk/; revision=49256
This commit is contained in:
parent
f7f4cae9ba
commit
3a7694182b
|
@ -235,8 +235,9 @@ HalpReportResourceUsage(IN PUNICODE_STRING HalName,
|
|||
if (!HalpGetInfoFromACPI)
|
||||
{
|
||||
/* No, so use our local table */
|
||||
Port = HalpComPortIrqMapping[0][0];
|
||||
for (i = 0; Port; i++)
|
||||
for (i = 0, Port = HalpComPortIrqMapping[i][0];
|
||||
Port;
|
||||
i++, Port = HalpComPortIrqMapping[i][0])
|
||||
{
|
||||
/* Is this the port we want? */
|
||||
if (Port == (ULONG_PTR)KdComPortInUse)
|
||||
|
@ -248,9 +249,6 @@ HalpReportResourceUsage(IN PUNICODE_STRING HalName,
|
|||
PRIMARY_VECTOR_BASE,
|
||||
HIGH_LEVEL);
|
||||
}
|
||||
|
||||
/* Next port */
|
||||
Port = HalpComPortIrqMapping[i][0];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue