all repos — mgba @ d7f09a330b43d999c85e73e7be54090fd4a2c5be

mGBA Game Boy Advance Emulator

Fix use after free with GBASIODeinit (#374)

Dwayne Slater ds84182@gmail.com
Sun, 04 Sep 2016 17:27:13 -0400
commit

d7f09a330b43d999c85e73e7be54090fd4a2c5be

parent

7e9f43a9c91f96e9af0c815b7cccd422c0bb4fbf

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/gba/sio.csrc/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);