Fixed the Shuttle HOT-539 segmentation fault.
This commit is contained in:
@@ -331,9 +331,10 @@ gameport_remap(void *priv, uint16_t address)
|
||||
} else {
|
||||
/* Port at other addresses: add to bottom. */
|
||||
other_dev = active_gameports;
|
||||
while (other_dev->next)
|
||||
while (other_dev && other_dev->next)
|
||||
other_dev = other_dev->next;
|
||||
other_dev->next = dev;
|
||||
if (other_dev)
|
||||
other_dev->next = dev;
|
||||
}
|
||||
|
||||
io_sethandler(dev->addr, dev->len,
|
||||
|
||||
Reference in New Issue
Block a user