https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1200561fcc722564bb1790...
commit 1200561fcc722564bb1790c0fc36cc3e361a9972 Author: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org AuthorDate: Sun Oct 24 18:36:47 2021 +0200 Commit: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org CommitDate: Thu Nov 18 22:36:07 2021 +0100
[NTOS:EX] NtQuerySystemInformation: Use same parameter names as documentation. FStatus --> Status. (#4064) --- ntoskrnl/ex/sysinfo.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/ntoskrnl/ex/sysinfo.c b/ntoskrnl/ex/sysinfo.c index e786252fff3..bb037466850 100644 --- a/ntoskrnl/ex/sysinfo.c +++ b/ntoskrnl/ex/sysinfo.c @@ -2918,13 +2918,13 @@ NTAPI NtQuerySystemInformation( _In_ SYSTEM_INFORMATION_CLASS SystemInformationClass, _Out_writes_bytes_to_opt_(SystemInformationLength, *ReturnLength) PVOID SystemInformation, - _In_ ULONG Length, - _Out_opt_ PULONG UnsafeResultLength) + _In_ ULONG SystemInformationLength, + _Out_opt_ PULONG ReturnLength) { - KPROCESSOR_MODE PreviousMode; - ULONG ResultLength = 0; + NTSTATUS Status = STATUS_NOT_IMPLEMENTED; + ULONG CapturedResultLength = 0; ULONG Alignment = TYPE_ALIGNMENT(ULONG); - NTSTATUS FStatus = STATUS_NOT_IMPLEMENTED; + KPROCESSOR_MODE PreviousMode;
PAGED_CODE();
@@ -2949,13 +2949,13 @@ NtQuerySystemInformation( if (SystemInformationClass == SystemKernelDebuggerInformation) Alignment = TYPE_ALIGNMENT(BOOLEAN);
- ProbeForWrite(SystemInformation, Length, Alignment); - if (UnsafeResultLength != NULL) - ProbeForWriteUlong(UnsafeResultLength); + ProbeForWrite(SystemInformation, SystemInformationLength, Alignment); + if (ReturnLength != NULL) + ProbeForWriteUlong(ReturnLength); }
- if (UnsafeResultLength) - *UnsafeResultLength = 0; + if (ReturnLength) + *ReturnLength = 0;
#if (NTDDI_VERSION < NTDDI_VISTA) /* @@ -2971,22 +2971,22 @@ NtQuerySystemInformation( if (CallQS[SystemInformationClass].Query != NULL) { /* Hand the request to a subhandler */ - FStatus = CallQS[SystemInformationClass].Query(SystemInformation, - Length, - &ResultLength); + Status = CallQS[SystemInformationClass].Query(SystemInformation, + SystemInformationLength, + &CapturedResultLength);
/* Save the result length to the caller */ - if (UnsafeResultLength) - *UnsafeResultLength = ResultLength; + if (ReturnLength) + *ReturnLength = CapturedResultLength; } } _SEH2_EXCEPT(ExSystemExceptionFilter()) { - FStatus = _SEH2_GetExceptionCode(); + Status = _SEH2_GetExceptionCode(); } _SEH2_END;
- return FStatus; + return Status; }
__kernel_entry