vcruntime140_1: Skip unwind if already at last level.

Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Daniel Lehman 2020-06-03 11:09:19 +02:00 committed by Alexandre Julliard
parent 0f15bfee33
commit 94b25a47ba
1 changed files with 2 additions and 0 deletions

View File

@ -432,6 +432,8 @@ static void cxx_local_unwind4(ULONG64 frame, DISPATCHER_CONTEXT *dispatch,
terminate();
}
if (trylevel <= last_level) return;
unwind_data = rva_to_ptr(descr->unwind_map, dispatch->ImageBase);
last = unwind_data;
for (i = 0; i < trylevel; i++)