Trying to fix avatar file name charset issue #44

This commit is contained in:
lotodore
2011-02-04 21:14:49 +00:00
parent ca25c35b94
commit 8c9a17f7db
4 changed files with 8 additions and 5 deletions
+4 -1
View File
@@ -98,9 +98,10 @@ AvatarManager::Init(const string &dataDir, const string &cacheDir)
return retVal;
}
void
bool
AvatarManager::AddSingleAvatar(const std::string &fileName)
{
bool retVal = false;
path filePath(fileName);
string tmpFileName(filePath.file_string());
@@ -120,9 +121,11 @@ AvatarManager::AddSingleAvatar(const std::string &fileName)
{
boost::mutex::scoped_lock lock(m_avatarsMutex);
m_avatars.insert(AvatarMap::value_type(md5buf, tmpFileName));
retVal = true;
}
}
}
return retVal;
}
boost::shared_ptr<AvatarFileState>