From c60437258a05fddbb9994e8714691ffc0bfd606e Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 27 Jun 2012 16:24:54 +0000 Subject: * exceptions.cc (exception::handle): Cast exception code to NTSTATUS for comparison. * ntdll.h: Drop defining NT status codes in favor of including ntstatus.h. --- winsup/cygwin/exceptions.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/exceptions.cc') 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 */ -- cgit v1.2.3