[NTOS:PS] NtQueryInformationProcess(): Fix ProcessDeviceMap case

Fix Clang-Cl
'...\ntoskrnl\ps\query.c(583,33): warning: variable 'Status' is uninitialized when used here [-Wuninitialized]'

Addendum to 1074a9a.
This commit is contained in:
Serge Gautherie 2020-11-12 01:22:46 +01:00 committed by George Bișoc
parent c0961cac10
commit 8a61e4f08c

View file

@ -578,14 +578,10 @@ NtQueryInformationProcess(
{
/* Get the exception code */
Status = _SEH2_GetExceptionCode();
_SEH2_YIELD(break);
}
_SEH2_END;
if (!NT_SUCCESS(Status))
{
break;
}
/* Only one flag is supported and it needs LUID mappings */
if ((Flags & ~PROCESS_LUID_DOSDEVICES_ONLY) != 0 ||
!ObIsLUIDDeviceMapsEnabled())