From 7d2675d19972ce294d37dc145f85ee8c0fc8d88d Mon Sep 17 00:00:00 2001 From: Daniel Lehman Date: Wed, 3 Jun 2020 11:09:31 +0200 Subject: [PATCH] vcruntime140_1: Don't terminate on state of -1. Signed-off-by: Daniel Lehman Signed-off-by: Piotr Caban Signed-off-by: Alexandre Julliard --- dlls/vcruntime140_1/except_x86_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/vcruntime140_1/except_x86_64.c b/dlls/vcruntime140_1/except_x86_64.c index 42eab3b046d..627e9694ecc 100644 --- a/dlls/vcruntime140_1/except_x86_64.c +++ b/dlls/vcruntime140_1/except_x86_64.c @@ -426,7 +426,7 @@ static void cxx_local_unwind4(ULONG64 frame, DISPATCHER_CONTEXT *dispatch, TRACE("current level: %d, last level: %d\n", trylevel, last_level); - if (trylevel<0 || trylevel>=descr->unwind_count) + if (trylevel<-1 || trylevel>=descr->unwind_count) { ERR("invalid trylevel %d\n", trylevel); terminate();