From b352208d4b548d961f7e78aba230ec89eee58ef2 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Sun, 9 Apr 2006 06:50:18 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=9824 --- lib/stackwalker_win.cpp | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/lib/stackwalker_win.cpp b/lib/stackwalker_win.cpp index fb75a858af..5b028908a7 100644 --- a/lib/stackwalker_win.cpp +++ b/lib/stackwalker_win.cpp @@ -697,17 +697,18 @@ static void ShowStackRM(HANDLE hThread, CONTEXT& Context, HANDLE hSWProcess) } } // for ( frameNum ) - switch(gle) - { - case ERROR_INVALID_ADDRESS: - _ftprintf(stderr, _T("\nStackWalk(): ERROR_INVALID_ADDRESS (%lu) - Possible stack corruption.\n"), gle ); - break; - case ERROR_NOACCESS: - _ftprintf(stderr, _T("\nStackWalk(): ERROR_NOACCESS (%lu) - Possible stack corruption.\n"), gle ); - break; - default: - _ftprintf(stderr, _T("\nStackWalk(): GetLastError = %lu\n"), gle ); - break; + switch(gle){ + case ERROR_SUCCESS: + break; + case ERROR_INVALID_ADDRESS: + _ftprintf(stderr, _T("\nStackWalk(): ERROR_INVALID_ADDRESS (%lu) - Possible stack corruption.\n"), gle ); + break; + case ERROR_NOACCESS: + _ftprintf(stderr, _T("\nStackWalk(): ERROR_NOACCESS (%lu) - Possible stack corruption.\n"), gle ); + break; + default: + _ftprintf(stderr, _T("\nStackWalk(): GetLastError = %lu\n"), gle ); + break; } fflush(stderr);