From 74e4e70053a30b1b71cabacff15aedf479af592d Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Mon, 15 Feb 2021 19:38:28 -0800 Subject: [PATCH] fs.mitm: fix cache of non-current-process data storages (closes #1371) --- stratosphere/ams_mitm/source/fs_mitm/fs_mitm_service.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stratosphere/ams_mitm/source/fs_mitm/fs_mitm_service.cpp b/stratosphere/ams_mitm/source/fs_mitm/fs_mitm_service.cpp index 2c2fdeca3..27d170bb7 100644 --- a/stratosphere/ams_mitm/source/fs_mitm/fs_mitm_service.cpp +++ b/stratosphere/ams_mitm/source/fs_mitm/fs_mitm_service.cpp @@ -380,7 +380,7 @@ namespace ams::mitm::fs { /* Try to get a storage from the cache. */ { - std::shared_ptr cached_storage = GetStorageCacheEntry(this->client_info.program_id); + std::shared_ptr cached_storage = GetStorageCacheEntry(data_id); if (cached_storage != nullptr) { out.SetValue(MakeSharedStorage(cached_storage), target_object_id); return ResultSuccess(); @@ -403,7 +403,7 @@ namespace ams::mitm::fs { new_storage = std::move(layered_storage); } - SetStorageCacheEntry(this->client_info.program_id, &new_storage); + SetStorageCacheEntry(data_id, &new_storage); out.SetValue(MakeSharedStorage(new_storage), target_object_id); }