}
_SEH_HANDLE
{
- ExceptionDisposition = UnhandledExceptionFilter(ExceptionInfo);
}
_SEH_END;
}
+ if ((ExceptionDisposition == EXCEPTION_CONTINUE_SEARCH || ExceptionDisposition == EXCEPTION_EXECUTE_HANDLER) &&
+ GlobalTopLevelExceptionFilter != UnhandledExceptionFilter)
+ {
+ ExceptionDisposition = UnhandledExceptionFilter(ExceptionInfo);
+ }
return ExceptionDisposition;
}
}
else
{
- ReturnClass = 0 /* FIXME */;
+ ReturnClass = PROCESS_PRIORITY_CLASS_INVALID;
}
return ReturnClass;
}
/* Now check if we have a file, and if the path size is OK */
- if (!RetVal || RetVal >= (MAX_PATH / sizeof(WCHAR)))
+ if (!RetVal || RetVal >= (MAX_PATH * sizeof(WCHAR)))
{
ULONG PathType;
HANDLE hFile;