GBA: Fix crash if GBALog is called with a null context
Jeffrey Pfau jeffrey@endrift.com
Mon, 09 Mar 2015 21:16:41 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gba/gba.c
→
src/gba/gba.c
@@ -550,7 +550,7 @@ threadContext->state = THREAD_CRASHED;
MutexUnlock(&threadContext->stateMutex); } } - if (gba->logHandler) { + if (gba && gba->logHandler) { gba->logHandler(threadContext, level, format, args); return; }