- Detect end of chain
- Correct copy/paste error
Fixes bug 1212
Modified: trunk/reactos/lib/crt/except/seh.s

Modified: trunk/reactos/lib/crt/except/seh.s
--- trunk/reactos/lib/crt/except/seh.s	2005-12-30 18:19:24 UTC (rev 20459)
+++ trunk/reactos/lib/crt/except/seh.s	2005-12-30 18:35:49 UTC (rev 20460)
@@ -99,8 +99,10 @@
 
     // If we have reached the end of the chain or we're asked to stop here
     // by the caller then exit
+    test     %ebx, %ebx
+    je       .lu2_done
+
     movl     ER_TRYLEVEL(%ebx), %eax
-
     cmpl     $-1, %eax
     je       .lu2_done
 
@@ -288,7 +290,6 @@
     // Perform local unwinding
 .eh3_unwind:
 
-    movl     $ExceptionContinueSearch, %eax
     testl    $EXCEPTION_TARGET_UNWIND, EREC_FLAGS(%eax)
     jnz      .eh3_return