https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3e5dcf7937cf121da9a61e...
commit 3e5dcf7937cf121da9a61e8a05455720ffd5b171 Author: Eric Kohl eric.kohl@reactos.org AuthorDate: Sun Nov 21 21:41:31 2021 +0100 Commit: Eric Kohl eric.kohl@reactos.org CommitDate: Sun Nov 21 21:42:04 2021 +0100
[NTOS:EX] Fix version specific return value for NtSetSystemInformation:SystemFlagsInformation --- ntoskrnl/ex/sysinfo.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/ntoskrnl/ex/sysinfo.c b/ntoskrnl/ex/sysinfo.c index 7fcc3e8260d..43ff88faaff 100644 --- a/ntoskrnl/ex/sysinfo.c +++ b/ntoskrnl/ex/sysinfo.c @@ -1226,7 +1226,11 @@ SSI_DEF(SystemFlagsInformation)
if (!SeSinglePrivilegeCheck(SeDebugPrivilege, ExGetPreviousMode())) { +#if (NTDDI_VERSION < NTDDI_WIN7) + return STATUS_ACCESS_VIOLATION; +#else return STATUS_ACCESS_DENIED; +#endif }
NtGlobalFlag = ((PSYSTEM_FLAGS_INFORMATION) Buffer)->Flags;