io_removehandler() now clears private pointers.
This commit is contained in:
parent
81a42622a3
commit
d07583d675
1 changed files with 2 additions and 0 deletions
2
src/io.c
2
src/io.c
|
|
@ -91,6 +91,7 @@ void io_removehandler(uint16_t base, int size,
|
||||||
port_outw[ base + c][0] = NULL;
|
port_outw[ base + c][0] = NULL;
|
||||||
if (port_outl[ base + c][0] == outl)
|
if (port_outl[ base + c][0] == outl)
|
||||||
port_outl[ base + c][0] = NULL;
|
port_outl[ base + c][0] = NULL;
|
||||||
|
port_priv[base + c][0] = NULL;
|
||||||
}
|
}
|
||||||
if (port_priv[base + c][1] == priv)
|
if (port_priv[base + c][1] == priv)
|
||||||
{
|
{
|
||||||
|
|
@ -106,6 +107,7 @@ void io_removehandler(uint16_t base, int size,
|
||||||
port_outw[ base + c][1] = NULL;
|
port_outw[ base + c][1] = NULL;
|
||||||
if (port_outl[ base + c][1] == outl)
|
if (port_outl[ base + c][1] == outl)
|
||||||
port_outl[ base + c][1] = NULL;
|
port_outl[ base + c][1] = NULL;
|
||||||
|
port_priv[base + c][1] = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue