28static LPTOP_LEVEL_EXCEPTION_FILTER Win32_Old_ExceptionHandler =
nullptr;
31Win32__WSAFDIsSet(
int fd, fd_set FAR * set)
34 SOCKET s =
F->win32.handle;
36 return __WSAFDIsSet(s, set);
39LONG CALLBACK WIN32_ExceptionHandler(EXCEPTION_POINTERS* ep)
43 er = ep->ExceptionRecord;
45 switch (er->ExceptionCode) {
47 case EXCEPTION_ACCESS_VIOLATION:
51 case EXCEPTION_DATATYPE_MISALIGNMENT:
53 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
55 case EXCEPTION_IN_PAGE_ERROR:
63 return EXCEPTION_CONTINUE_SEARCH;
66void WIN32_ExceptionHandlerInit()
70 if (Win32_Old_ExceptionHandler ==
NULL)
71 Win32_Old_ExceptionHandler = SetUnhandledExceptionFilter(WIN32_ExceptionHandler);
78 if (Win32_Old_ExceptionHandler !=
NULL)
79 SetUnhandledExceptionFilter(Win32_Old_ExceptionHandler);
void WIN32_ExceptionHandlerCleanup(void)
SQUIDCEXTERN LPCRITICAL_SECTION dbg_mutex
static uint32 F(uint32 X, uint32 Y, uint32 Z)