The function epilog is responsible for removing the final exception frame
authorGé van Geldorp <ge@gse.nl>
Tue, 20 Dec 2005 20:42:30 +0000 (20:42 +0000)
committerGé van Geldorp <ge@gse.nl>
Tue, 20 Dec 2005 20:42:30 +0000 (20:42 +0000)
svn path=/trunk/; revision=20280

reactos/lib/rtl/i386/exception.c

index fa9bb5b..37cc00a 100644 (file)
@@ -333,7 +333,10 @@ RtlUnwind(PVOID RegistrationFrame OPTIONAL,
             RegistrationFrame2 = RegistrationFrame2->Next;
 
             /* Remove this handler */
-            RtlpSetExceptionList(OldFrame);
+            if (RegistrationFrame2 != RegistrationFrame)
+            {
+                RtlpSetExceptionList(OldFrame);
+            }
         }
     }