Fix use after free with GBASIODeinit (#374)
Dwayne Slater ds84182@gmail.com
Sun, 04 Sep 2016 17:27:13 -0400
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gba/sio.c
→
src/gba/sio.c
@@ -123,7 +123,7 @@ return;
} } } - if (sio->mode == mode) { + if (sio->activeDriver == *driverLoc) { sio->activeDriver = driver; if (driver && driver->load) { driver->load(driver);