* exceptions.cc (exception::handle): Cast exception code to NTSTATUS

for comparison.
	* ntdll.h: Drop defining NT status codes in favor of including
	ntstatus.h.
This commit is contained in:
Corinna Vinschen
2012-06-27 16:24:54 +00:00
parent 165f575341
commit c60437258a
3 changed files with 12 additions and 60 deletions

View File

@ -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 */