all repos — mgba @ 1c7da12ddb5dd49d7ee3d10fed780051ecbce2ec

mGBA Game Boy Advance Emulator

GBA SIO: Fix GBASIOInit unintialized access
Jeffrey Pfau jeffrey@endrift.com
Sun, 16 Aug 2015 19:32:50 -0700
commit

1c7da12ddb5dd49d7ee3d10fed780051ecbce2ec

parent

d10b5c52e642cf843187100f07aa93f075cff0e9

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

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