- 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:
Cameron Gutman 2010-10-24 10:48:10 +00:00
parent f7f4cae9ba
commit 3a7694182b

View file

@ -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];
}
}
}