mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
- Fix some copy/paste bugs
- ISAPNP_MIN_READ_PORT is an acceptable read port so don't skip it (We add READ_DATA_PORT_STEP in FindNextReadPort) - Don't add READ_DATA_PORT_STEP before calling IsolateReadDataPortSelect (We add READ_DATA_PORT_STEP in FindNextReadPort) because then we skip a read data port - Thanks to the linux kernel source ;) svn path=/trunk/; revision=40421
This commit is contained in:
parent
60cd063c0a
commit
2c22f42f66
1 changed files with 1 additions and 2 deletions
|
@ -301,7 +301,7 @@ static ULONG IsolatePnPCards(VOID)
|
|||
|
||||
DPRINT("Called\n");
|
||||
|
||||
IsaPnPReadPort = (PUCHAR)ISAPNP_MIN_READ_PORT;
|
||||
IsaPnPReadPort = (PUCHAR)(ISAPNP_MIN_READ_PORT - READ_DATA_PORT_STEP);
|
||||
if (!IsolateReadDataPortSelect()) {
|
||||
DPRINT("Could not set read data port\n");
|
||||
return 0;
|
||||
|
@ -340,7 +340,6 @@ static ULONG IsolatePnPCards(VOID)
|
|||
goto next;
|
||||
}
|
||||
if (iteration == 1) {
|
||||
IsaPnPReadPort += READ_DATA_PORT_STEP;
|
||||
if (!IsolateReadDataPortSelect()) {
|
||||
DPRINT("Could not set read data port\n");
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue