https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8a61e4f08cd00e3e68149…
commit 8a61e4f08cd00e3e68149895450ef53970fc5d04
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Thu Nov 12 01:22:46 2020 +0100
Commit: George Bișoc <george.bisoc(a)reactos.org>
CommitDate: Thu Apr 29 21:40:58 2021 +0200
[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.
---
ntoskrnl/ps/query.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
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())