all repos — mgba @ ad10b5dedf834106ad7416527b136bd46d2e5d9a

mGBA Game Boy Advance Emulator

GBA: Fix crash if GBALog is called with a null context
Jeffrey Pfau jeffrey@endrift.com
Mon, 09 Mar 2015 21:16:41 -0700
commit

ad10b5dedf834106ad7416527b136bd46d2e5d9a

parent

53a17bc96fb5f462592513750b70d5775e5b2cee

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

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