Daniel Lehman : vcruntime140_1: Don't terminate on state of -1.

Alexandre Julliard julliard at winehq.org
Wed Jun 3 16:40:56 CDT 2020


Module: wine
Branch: master
Commit: 7d2675d19972ce294d37dc145f85ee8c0fc8d88d
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7d2675d19972ce294d37dc145f85ee8c0fc8d88d

Author: Daniel Lehman <dlehman25 at gmail.com>
Date:   Wed Jun  3 11:09:31 2020 +0200

vcruntime140_1: Don't terminate on state of -1.

Signed-off-by: Daniel Lehman <dlehman25 at gmail.com>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 42eab3b046..627e9694ec 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();




More information about the wine-cvs mailing list