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:
authorCorinna Vinschen <corinna@vinschen.de>2012-06-27 20:24:54 +0400
committerCorinna Vinschen <corinna@vinschen.de>2012-06-27 20:24:54 +0400
commitc60437258a05fddbb9994e8714691ffc0bfd606e (patch)
treed93af877cff17092a97753fa37477a5439516bb5 /winsup/cygwin/exceptions.cc
parent165f575341ae32bccd30e13fc6b038a5e4ba08af (diff)
* exceptions.cc (exception::handle): Cast exception code to NTSTATUS
for comparison. * ntdll.h: Drop defining NT status codes in favor of including ntstatus.h.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r--winsup/cygwin/exceptions.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index be3840fff..4c477e05d 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -664,7 +664,7 @@ exception::handle (EXCEPTION_RECORD *e, exception_list *frame, CONTEXT *in, void
stackdump ((DWORD) ebp, in, e);
}
- if (e->ExceptionCode == STATUS_ACCESS_VIOLATION)
+ if ((NTSTATUS) e->ExceptionCode == STATUS_ACCESS_VIOLATION)
{
int error_code = 0;
if (si.si_code == SEGV_ACCERR) /* Address present */