Translate EXCEPTION_XXX defines into EXCEPTION_DISPOSITION enum values.
authorGregor Anich <blight@blight.eu.org>
Sun, 7 Nov 2004 15:58:41 +0000 (15:58 +0000)
committerGregor Anich <blight@blight.eu.org>
Sun, 7 Nov 2004 15:58:41 +0000 (15:58 +0000)
svn path=/trunk/; revision=11576

reactos/lib/kernel32/process/create.c

index 14fc209..59567cc 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: create.c,v 1.87 2004/07/07 16:32:02 navaraf Exp $
+/* $Id: create.c,v 1.88 2004/11/07 15:58:41 blight Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS system libraries
@@ -305,7 +305,13 @@ _except_handler(EXCEPTION_RECORD *ExceptionRecord,
          ExitProcess(ExceptionRecord->ExceptionCode);
    }
 
-   return ExceptionDisposition;
+   /* translate EXCEPTION_XXX defines into EXCEPTION_DISPOSITION enum values */
+   if (ExceptionDisposition == EXCEPTION_CONTINUE_EXECUTION)
+     return ExceptionContinueExecution;
+   else if (ExceptionDisposition == EXCEPTION_CONTINUE_SEARCH)
+     return ExceptionContinueSearch;
+
+   return -1; /* unknown return from UnhandledExceptionFilter */
 }