ntdll: Restore the original context for the last frame instead of the result of the unwind handler.

This commit is contained in:
Alexandre Julliard 2012-03-12 11:11:36 +01:00
parent de9330cbcb
commit 7c36b51aaf
1 changed files with 2 additions and 1 deletions

View File

@ -2927,7 +2927,7 @@ void WINAPI RtlUnwindEx( PVOID end_frame, PVOID target_ip, EXCEPTION_RECORD *rec
dispatch.ContextRecord = context;
dispatch.HistoryTable = table;
while (dispatch.EstablisherFrame != (ULONG64)end_frame)
for (;;)
{
/* FIXME: should use the history table to make things faster */
@ -3031,6 +3031,7 @@ void WINAPI RtlUnwindEx( PVOID end_frame, PVOID target_ip, EXCEPTION_RECORD *rec
dispatch.EstablisherFrame = new_context.Rsp;
}
if (dispatch.EstablisherFrame == (ULONG64)end_frame) break;
*context = new_context;
}