diff options
-rw-r--r-- | winsup/cygwin/exceptions.cc | 11 |
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; } } |