Correctly detect changes in root directories (such as C:\) on Windows. Bug was introduced with "Correctly backup root directory on Linux"

(cherry picked from commit 9f2c974262)
This commit is contained in:
Martin 2014-12-04 20:30:21 +01:00
parent a3e9dd21f2
commit e3227328dc

View File

@ -132,11 +132,14 @@ std::wstring add_trailing_slash(const std::wstring &strDirName)
{
return strDirName+os_file_sep();
}
else
else if(strDirName.empty())
{
return os_file_sep();
}
return strDirName;
else
{
return strDirName;
}
}
IndexThread::IndexThread(void)