[NTOS:SE] Do not ignore SepAccessCheckAndAuditAlarmWorker return value

CORE-17637
This commit is contained in:
Jérôme Gardou 2021-06-17 17:55:14 +02:00 committed by Jérôme Gardou
parent 07d38cd4c5
commit 8178996559

View file

@ -622,7 +622,7 @@ SepAccessCheckAndAuditAlarm(
}
/* Call the worker routine with the captured buffers */
SepAccessCheckAndAuditAlarmWorker(&CapturedSubsystemName,
Status = SepAccessCheckAndAuditAlarmWorker(&CapturedSubsystemName,
HandleId,
&SubjectContext,
&CapturedObjectTypeName,
@ -639,6 +639,8 @@ SepAccessCheckAndAuditAlarm(
SafeAccessStatusList,
&LocalGenerateOnClose,
UseResultList);
if (!NT_SUCCESS(Status))
goto Cleanup;
/* Enter SEH to copy the data back to user mode */
_SEH2_TRY