NumberOfParameters,
UnicodeStringParameterMask,
Parameters,
- (PreviousMode != KernelMode) ? TRUE: FALSE);
+ (PreviousMode != KernelMode) ? TRUE : FALSE);
}
}
- /* Enable hard error processing if it is enabled for the process
- * or if the exception status forces it */
- if ((Process->DefaultHardErrorProcessing & 1) ||
+ /*
+ * Enable hard error processing if it is enabled for the process
+ * or if the exception status forces it.
+ */
+ if ((Process->DefaultHardErrorProcessing & SEM_FAILCRITICALERRORS) ||
(ErrorStatus & HARDERROR_OVERRIDE_ERRORMODE))
{
/* Check if we have an exception port */
NumberOfParameters,
UnicodeStringParameterMask,
Parameters,
- (PreviousMode != KernelMode) ? TRUE: FALSE);
+ (PreviousMode != KernelMode) ? TRUE : FALSE);
/* If we survived, return to caller */
*Response = ResponseReturnToCaller;
/* Check if we have a parent */
if (Parent)
{
- /* Inherit PID and Hard Error Processing */
+ /* Inherit PID and hard-error processing */
Process->InheritedFromUniqueProcessId = Parent->UniqueProcessId;
- Process->DefaultHardErrorProcessing = Parent->
- DefaultHardErrorProcessing;
+ Process->DefaultHardErrorProcessing = Parent->DefaultHardErrorProcessing;
}
else
{
- /* Use default hard error processing */
- Process->DefaultHardErrorProcessing = TRUE;
+ /* Use default hard-error processing */
+ Process->DefaultHardErrorProcessing = SEM_FAILCRITICALERRORS;
}
/* Check for a section handle */
PROCESS_PRIORITY_NORMAL,
Affinity,
DirectoryTableBase,
- (BOOLEAN)(Process->DefaultHardErrorProcessing & 4));
+ BooleanFlagOn(Process->DefaultHardErrorProcessing,
+ SEM_NOALIGNMENTFAULTEXCEPT));
/* Duplicate Parent Token */
Status = PspInitializeProcessSecurity(Process, Parent);