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

Alexandre Julliard julliard at winehq.org
Thu Jun 4 16:08:00 CDT 2020


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

Author: Daniel Lehman <dlehman25 at gmail.com>
Date:   Wed Jun  3 19:51:50 2020 -0700

vcruntime140_1: Don't terminate on -1 trylevel.

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 4203373294..b4b7bd2348 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<-1 || trylevel>=descr->unwind_count)
+    if (trylevel<-1 || trylevel>=(int)descr->unwind_count)
     {
         ERR("invalid trylevel %d\n", trylevel);
         terminate();




More information about the wine-cvs mailing list