Add error checking to AddVectoredExceptionHandler

release
Doug Coleman 2007-12-12 01:29:41 -06:00
parent 77ead806e0
commit 8cb2675a70
1 changed files with 4 additions and 2 deletions

View File

@ -84,9 +84,11 @@ long exception_handler(PEXCEPTION_POINTERS pe)
void c_to_factor_toplevel(CELL quot)
{
AddVectoredExceptionHandler(0, (void*)exception_handler);
if(!AddVectoredExceptionHandler(0, (void*)exception_handler))
fatal_error("AddVectoredExceptionHandler failed", 0);
c_to_factor(quot);
RemoveVectoredExceptionHandler((void*)exception_handler);
if(!RemoveVectoredExceptionHandler((void*)exception_handler))
fatal_error("RemoveVectoredExceptionHandler failed", 0);
}
void open_console(void)