msvcrt: Stop at trylevel for ControlPc on target frame for non-consolidate unwinds.

Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Daniel Lehman 2017-04-21 12:41:31 -07:00 committed by Alexandre Julliard
parent b0326bea74
commit 64c4c39746

View file

@ -515,7 +515,7 @@ static DWORD cxx_frame_handler(EXCEPTION_RECORD *rec, ULONG64 frame,
}
if (frame == orig_frame)
cxx_local_unwind(frame, dispatch, descr, -1);
cxx_local_unwind(frame, dispatch, descr, rec->ExceptionFlags & EH_TARGET_UNWIND ? trylevel : -1);
return ExceptionContinueSearch;
}
if (!descr->tryblock_count) return ExceptionContinueSearch;