From 8ba513fefbcfd8278a433090e59017963ba9887f Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 24 Nov 2020 19:49:11 -0800 Subject: [PATCH] fs: fix bug in buffer manager --- .../fssystem/buffers/fssystem_file_system_buffer_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libstratosphere/source/fssystem/buffers/fssystem_file_system_buffer_manager.cpp b/libraries/libstratosphere/source/fssystem/buffers/fssystem_file_system_buffer_manager.cpp index 34bdb7b11..aebc91960 100644 --- a/libraries/libstratosphere/source/fssystem/buffers/fssystem_file_system_buffer_manager.cpp +++ b/libraries/libstratosphere/source/fssystem/buffers/fssystem_file_system_buffer_manager.cpp @@ -228,7 +228,7 @@ namespace ams::fssystem { FileSystemBufferManager::CacheHandleTable::AttrInfo *FileSystemBufferManager::CacheHandleTable::FindAttrInfo(const BufferAttribute &attr) { const auto it = std::find_if(this->attr_list.begin(), this->attr_list.end(), [&attr](const AttrInfo &info) { - return attr.GetLevel() == attr.GetLevel(); + return attr.GetLevel() == info.GetLevel(); }); return it != this->attr_list.end() ? std::addressof(*it) : nullptr;