From bb7f320f7f553e79c3c8f6f64165368bfe4ed8f9 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 28 Jul 2020 18:15:16 -0700 Subject: [PATCH] kern: fix nonsensical copy/pasted comments in QueryMemory --- libraries/libmesosphere/source/svc/kern_svc_query_memory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/libmesosphere/source/svc/kern_svc_query_memory.cpp b/libraries/libmesosphere/source/svc/kern_svc_query_memory.cpp index 3f75d3104..a40c5b4a2 100644 --- a/libraries/libmesosphere/source/svc/kern_svc_query_memory.cpp +++ b/libraries/libmesosphere/source/svc/kern_svc_query_memory.cpp @@ -41,7 +41,7 @@ namespace ams::kern::svc { ams::svc::MemoryInfo info = {}; 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) { R_TRY(out_memory_info.CopyFrom(std::addressof(info))); } else { @@ -58,7 +58,7 @@ namespace ams::kern::svc { converted_info.ipc_refcount = info.ipc_refcount; converted_info.device_refcount = info.device_refcount; - /* Invoke. */ + /* Copy it. */ R_TRY(out_memory_info.CopyFrom(std::addressof(converted_info))); }