GBA SIO: Fix GBASIOInit unintialized access
Jeffrey Pfau jeffrey@endrift.com
Sun, 16 Aug 2015 19:32:50 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gba/sio.c
→
src/gba/sio.c
@@ -51,6 +51,7 @@ void GBASIOInit(struct GBASIO* sio) {
sio->drivers.normal = 0; sio->drivers.multiplayer = 0; sio->drivers.joybus = 0; + sio->activeDriver = 0; GBASIOReset(sio); }@@ -71,7 +72,6 @@ GBASIODeinit(sio);
sio->rcnt = RCNT_INITIAL; sio->siocnt = 0; sio->mode = -1; - sio->activeDriver = 0; _switchMode(sio); }