From: Pierre Schweitzer Date: Wed, 2 Oct 2019 08:52:00 +0000 (+0200) Subject: [KERNEL32] Fix FIXME by calling appropriate function in GetNativeSystemInfo() X-Git-Tag: 0.4.14-RC~1558 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=0ce3941b419e27d2894b227a7a101182f5850cd6 [KERNEL32] Fix FIXME by calling appropriate function in GetNativeSystemInfo() --- 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);