Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/exceptions.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index 0f5a890b6..743c73200 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -175,15 +175,12 @@ cygwin_exception::dump_exception ()
{
const char *exception_name = NULL;
- if (e)
+ for (int i = 0; status_info[i].name; i++)
{
- for (int i = 0; status_info[i].name; i++)
+ if (status_info[i].code == (NTSTATUS) e->ExceptionCode)
{
- if (status_info[i].code == (NTSTATUS) e->ExceptionCode)
- {
- exception_name = status_info[i].name;
- break;
- }
+ exception_name = status_info[i].name;
+ break;
}
}