https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0ce3941b419e27d2894b227a7a101182f5850cd6
commit 0ce3941b419e27d2894b227a7a101182f5850cd6 Author: Pierre Schweitzer <pie...@reactos.org> AuthorDate: Wed Oct 2 10:52:00 2019 +0200 Commit: Pierre Schweitzer <pie...@reactos.org> CommitDate: Wed Oct 2 10:52:00 2019 +0200 [KERNEL32] Fix FIXME by calling appropriate function in GetNativeSystemInfo() --- dll/win32/kernel32/client/sysinfo.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/dll/win32/kernel32/client/sysinfo.c b/dll/win32/kernel32/client/sysinfo.c index 0e588b3e449..ac0ad750efc 100644 --- a/dll/win32/kernel32/client/sysinfo.c +++ b/dll/win32/kernel32/client/sysinfo.c @@ -209,18 +209,16 @@ GetNativeSystemInfo(IN LPSYSTEM_INFO lpSystemInfo) SYSTEM_PROCESSOR_INFORMATION ProcInfo; NTSTATUS Status; - /* FIXME: Should be SystemNativeBasicInformation */ - Status = NtQuerySystemInformation(SystemBasicInformation, - &BasicInfo, - sizeof(BasicInfo), - 0); + Status = RtlGetNativeSystemInformation(SystemBasicInformation, + &BasicInfo, + sizeof(BasicInfo), + 0); if (!NT_SUCCESS(Status)) return; - /* FIXME: Should be SystemNativeProcessorInformation */ - Status = NtQuerySystemInformation(SystemProcessorInformation, - &ProcInfo, - sizeof(ProcInfo), - 0); + Status = RtlGetNativeSystemInformation(SystemProcessorInformation, + &ProcInfo, + sizeof(ProcInfo), + 0); if (!NT_SUCCESS(Status)) return; GetSystemInfoInternal(&BasicInfo, &ProcInfo, lpSystemInfo);