mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-26 15:05:42 -04:00
fix: moved vairable access
This commit is contained in:
parent
5cdcdb565f
commit
a3d600d5c3
@ -594,7 +594,7 @@ bool GameList::ScanFile(std::string path, std::time_t timestamp, std::unique_loc
|
||||
entry.total_played_time = iter->second.total_played_time;
|
||||
}
|
||||
|
||||
ApplyCustomAttributes(path, &entry, custom_attributes_ini);
|
||||
ApplyCustomAttributes(entry.path, &entry, custom_attributes_ini);
|
||||
|
||||
lock.lock();
|
||||
|
||||
@ -626,7 +626,7 @@ bool GameList::RescanCustomAttributesForPath(const std::string& path, const INIS
|
||||
if (!PopulateEntryFromPath(path, &entry))
|
||||
return false;
|
||||
|
||||
entry.path = std::move(path);
|
||||
entry.path = path;
|
||||
entry.last_modified_time = sd.ModificationTime;
|
||||
|
||||
const PlayedTimeMap played_time_map(LoadPlayedTimeMap(GetPlayedTimeFile()));
|
||||
@ -637,7 +637,7 @@ bool GameList::RescanCustomAttributesForPath(const std::string& path, const INIS
|
||||
entry.total_played_time = iter->second.total_played_time;
|
||||
}
|
||||
|
||||
ApplyCustomAttributes(path, &entry, custom_attributes_ini);
|
||||
ApplyCustomAttributes(entry.path, &entry, custom_attributes_ini);
|
||||
|
||||
std::unique_lock lock(s_mutex);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user