mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-13 00:26:35 +00:00
kern: fix nonsensical copy/pasted comments in QueryMemory
This commit is contained in:
parent
94a170c437
commit
bb7f320f7f
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ namespace ams::kern::svc {
|
||||||
ams::svc::MemoryInfo info = {};
|
ams::svc::MemoryInfo info = {};
|
||||||
R_TRY(QueryProcessMemory(std::addressof(info), out_page_info, process_handle, address));
|
R_TRY(QueryProcessMemory(std::addressof(info), out_page_info, process_handle, address));
|
||||||
|
|
||||||
/* Invoke the implementation. */
|
/* Copy the info to userspace. */
|
||||||
if constexpr (std::same_as<T, ams::svc::MemoryInfo>) {
|
if constexpr (std::same_as<T, ams::svc::MemoryInfo>) {
|
||||||
R_TRY(out_memory_info.CopyFrom(std::addressof(info)));
|
R_TRY(out_memory_info.CopyFrom(std::addressof(info)));
|
||||||
} else {
|
} else {
|
||||||
|
@ -58,7 +58,7 @@ namespace ams::kern::svc {
|
||||||
converted_info.ipc_refcount = info.ipc_refcount;
|
converted_info.ipc_refcount = info.ipc_refcount;
|
||||||
converted_info.device_refcount = info.device_refcount;
|
converted_info.device_refcount = info.device_refcount;
|
||||||
|
|
||||||
/* Invoke. */
|
/* Copy it. */
|
||||||
R_TRY(out_memory_info.CopyFrom(std::addressof(converted_info)));
|
R_TRY(out_memory_info.CopyFrom(std::addressof(converted_info)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue