Fixed string conversions

This commit is contained in:
Ian Bell
2015-02-23 22:41:20 -07:00
parent 280e9afc78
commit 518502145d
2 changed files with 4 additions and 2 deletions

View File

@@ -116,7 +116,8 @@
}
/// Get the size of a directory in bytes; from http://stackoverflow.com/a/17827724/1360263
inline unsigned long long CalculateDirSize(const std::string &path){
return CalculateDirSize(std::wstring(path.begin(), path.end()));
std::wstring wpath(path.begin(), path.end());
return CalculateDirSize(wpath);
}
inline unsigned long long CalculateDirSize(const std::wstring &path, std::vector<std::wstring> *errVect = NULL, unsigned long long size = 0)
{