Browse code

GetExceptionCode inside __finally doesn't work.

Try using it inside __except.

Török Edvin authored on 2010/11/05 05:10:11
Showing 1 changed files
... ...
@@ -1625,11 +1625,10 @@ static int test_database_wrap(const char *file, const char *newdb, int bytecode)
1625 1625
     {
1626 1626
 	ret = test_database(file, newdb, bytecode);
1627 1627
     }
1628
-    __finally {
1629
-	if (AbnormalTermination())
1630
-	    logg("!Exception during database testing, code %08x at %08x\n",
1631
-		 GetExceptionCode(), GetExceptionInformation()->ExceptionRecord->ExceptionAddress);
1632
-    }
1628
+    __except (logg("!Exception during database testing, code %08x at %08x\n",
1629
+		 GetExceptionCode(), GetExceptionInformation()->ExceptionRecord->ExceptionAddress),
1630
+	      EXCEPTION_CONTINUE_SEARCH)
1631
+    { }
1633 1632
     return ret;
1634 1633
 }
1635 1634
 #endif