ntdll: Add support for the special STATUS_UNWIND_CONSOLIDATE exception code.

This commit is contained in:
Alexandre Julliard 2012-03-12 11:27:19 +01:00
parent f996c89274
commit e562623a15
1 changed files with 6 additions and 0 deletions

View File

@ -3062,6 +3062,12 @@ void WINAPI RtlUnwindEx( PVOID end_frame, PVOID target_ip, EXCEPTION_RECORD *rec
context->u.s.Xmm14 = jmp->Xmm14;
context->u.s.Xmm15 = jmp->Xmm15;
}
else if (rec->ExceptionCode == STATUS_UNWIND_CONSOLIDATE && rec->NumberParameters >= 1)
{
PVOID (CALLBACK *consolidate)(EXCEPTION_RECORD *) = (void *)rec->ExceptionInformation[0];
TRACE( "calling consolidate callback %p\n", consolidate );
target_ip = consolidate( rec );
}
context->Rax = (ULONG64)retval;
context->Rip = (ULONG64)target_ip;
TRACE( "returning to %lx stack %lx\n", context->Rip, context->Rsp );