From 1748644f81b96ace157d0a9e145844376deb6498 Mon Sep 17 00:00:00 2001 From: Lazy-Coder-03 Date: Sun, 20 Sep 2026 21:38:31 +0530 Subject: [PATCH] htcfs: fix swapped path lengths in RenameFile/RenameDirectory --- .../libstratosphere/source/htcfs/htcfs_client_impl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/libstratosphere/source/htcfs/htcfs_client_impl.cpp b/libraries/libstratosphere/source/htcfs/htcfs_client_impl.cpp index 50fa2ee81..313f54a9c 100644 --- a/libraries/libstratosphere/source/htcfs/htcfs_client_impl.cpp +++ b/libraries/libstratosphere/source/htcfs/htcfs_client_impl.cpp @@ -532,8 +532,8 @@ namespace ams::htcfs { Header request, response; /* Create header for the request. */ - const auto old_path_len = std::strlen(new_path); - const auto new_path_len = std::strlen(old_path); + const auto old_path_len = std::strlen(old_path); + const auto new_path_len = std::strlen(new_path); m_header_factory.MakeRenameFileHeader(std::addressof(request), old_path_len, new_path_len, case_sensitive); /* Send the request to the host. */ @@ -734,8 +734,8 @@ namespace ams::htcfs { Header request, response; /* Create header for the request. */ - const auto old_path_len = std::strlen(new_path); - const auto new_path_len = std::strlen(old_path); + const auto old_path_len = std::strlen(old_path); + const auto new_path_len = std::strlen(new_path); m_header_factory.MakeRenameDirectoryHeader(std::addressof(request), old_path_len, new_path_len, case_sensitive); /* Send the request to the host. */