From f48660978151c1be7a87a61b0b58a122160073ce Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 8 Apr 2006 12:44:40 +0000 Subject: [PATCH] if eip is NULL, don't put a NULL into the frame list and terminate it prematurely --- stepmania/src/archutils/Win32/Crash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/archutils/Win32/Crash.cpp b/stepmania/src/archutils/Win32/Crash.cpp index dc3a6cba3b..adb3b6f6a4 100644 --- a/stepmania/src/archutils/Win32/Crash.cpp +++ b/stepmania/src/archutils/Win32/Crash.cpp @@ -451,7 +451,7 @@ void CrashHandler::do_backtrace( const void **buf, size_t size, * handler was called on the same stack. However, once in a while, due to stack corruption, * we might not be able to get any frames from the stack. Pull it out of pContext->Eip, * which is always valid, and then discard the first stack frame if it's the same. */ - if( buf+1 != pLast ) + if( buf+1 != pLast && pContext->Eip != NULL ) { *buf = (void *) pContext->Eip; ++buf;