projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8c7b84b
)
[KERNEL32] Fix FIXME by calling appropriate function in GetNativeSystemInfo()
author
Pierre Schweitzer
<pierre@reactos.org>
Wed, 2 Oct 2019 08:52:00 +0000
(10:52 +0200)
committer
Pierre Schweitzer
<pierre@reactos.org>
Wed, 2 Oct 2019 08:52:00 +0000
(10:52 +0200)
dll/win32/kernel32/client/sysinfo.c
patch
|
blob
|
history
diff --git
a/dll/win32/kernel32/client/sysinfo.c
b/dll/win32/kernel32/client/sysinfo.c
index
0e588b3
..
ac0ad75
100644
(file)
--- 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;
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;
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);
if (!NT_SUCCESS(Status)) return;
GetSystemInfoInternal(&BasicInfo, &ProcInfo, lpSystemInfo);