Skip to content

Commit 0ce3941

Browse files
committed
[KERNEL32] Fix FIXME by calling appropriate function in GetNativeSystemInfo()
1 parent 8c7b84b commit 0ce3941

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

dll/win32/kernel32/client/sysinfo.c

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -209,18 +209,16 @@ GetNativeSystemInfo(IN LPSYSTEM_INFO lpSystemInfo)
209209
SYSTEM_PROCESSOR_INFORMATION ProcInfo;
210210
NTSTATUS Status;
211211

212-
/* FIXME: Should be SystemNativeBasicInformation */
213-
Status = NtQuerySystemInformation(SystemBasicInformation,
214-
&BasicInfo,
215-
sizeof(BasicInfo),
216-
0);
212+
Status = RtlGetNativeSystemInformation(SystemBasicInformation,
213+
&BasicInfo,
214+
sizeof(BasicInfo),
215+
0);
217216
if (!NT_SUCCESS(Status)) return;
218217

219-
/* FIXME: Should be SystemNativeProcessorInformation */
220-
Status = NtQuerySystemInformation(SystemProcessorInformation,
221-
&ProcInfo,
222-
sizeof(ProcInfo),
223-
0);
218+
Status = RtlGetNativeSystemInformation(SystemProcessorInformation,
219+
&ProcInfo,
220+
sizeof(ProcInfo),
221+
0);
224222
if (!NT_SUCCESS(Status)) return;
225223

226224
GetSystemInfoInternal(&BasicInfo, &ProcInfo, lpSystemInfo);

0 commit comments

Comments
 (0)