diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-06-27 20:24:54 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-06-27 20:24:54 +0400 |
commit | c60437258a05fddbb9994e8714691ffc0bfd606e (patch) | |
tree | d93af877cff17092a97753fa37477a5439516bb5 /winsup/cygwin/exceptions.cc | |
parent | 165f575341ae32bccd30e13fc6b038a5e4ba08af (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.cc | 2 |
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 */ |