1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-23 10:52:13 +00:00

kern: fix nonsensical copy/pasted comments in QueryMemory

This commit is contained in:
Michael Scire 2020-07-28 18:15:16 -07:00 committed by SciresM
parent 94a170c437
commit bb7f320f7f

View file

@ -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)));
} }