1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-09-20 05:53:24 +01:00

fs: fix bug in buffer manager

This commit is contained in:
Michael Scire 2020-11-24 19:49:11 -08:00
parent ef4d7dc024
commit 8ba513fefb

View file

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