From 73b306468b1304e591410acad350cad2d502a47c Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=A9=20van=20Geldorp?= Date: Fri, 30 Dec 2005 18:35:49 +0000 Subject: [PATCH] - Detect end of chain - Correct copy/paste error Fixes bug 1212 svn path=/trunk/; revision=20460 --- reactos/lib/crt/except/seh.s | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/lib/crt/except/seh.s b/reactos/lib/crt/except/seh.s index 5e8e7855cb4..8a2c984fc09 100755 --- a/reactos/lib/crt/except/seh.s +++ b/reactos/lib/crt/except/seh.s @@ -99,8 +99,10 @@ __local_unwind2: // If we have reached the end of the chain or we're asked to stop here // by the caller then exit - movl ER_TRYLEVEL(%ebx), %eax + test %ebx, %ebx + je .lu2_done + movl ER_TRYLEVEL(%ebx), %eax cmpl $-1, %eax je .lu2_done @@ -288,7 +290,6 @@ __except_handler3: // Perform local unwinding .eh3_unwind: - movl $ExceptionContinueSearch, %eax testl $EXCEPTION_TARGET_UNWIND, EREC_FLAGS(%eax) jnz .eh3_return -- 2.17.1