[KERNEL32] Fix FIXME by calling appropriate function in GetNativeSystemInfo()
authorPierre Schweitzer <pierre@reactos.org>
Wed, 2 Oct 2019 08:52:00 +0000 (10:52 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Wed, 2 Oct 2019 08:52:00 +0000 (10:52 +0200)
dll/win32/kernel32/client/sysinfo.c

index 0e588b3..ac0ad75 100644 (file)
@@ -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);