diff --git a/ntoskrnl/ps/query.c b/ntoskrnl/ps/query.c index c9b0b6b75a2..7c8737cba93 100644 --- a/ntoskrnl/ps/query.c +++ b/ntoskrnl/ps/query.c @@ -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())