MS STL iteration fix

This commit is contained in:
Jack Andersen 2016-01-19 12:13:12 -10:00
parent a2a4a4e830
commit 4bf50c8c8d
1 changed files with 4 additions and 0 deletions

View File

@ -782,7 +782,11 @@ public:
if (replace)
{
auto relIt = pp.m_relPath.end();
if (relIt != pp.m_relPath.begin())
--relIt;
auto absIt = pp.m_absPath.end();
if (absIt != pp.m_absPath.begin())
--absIt;
while (relIt != pp.m_relPath.begin() && *relIt != _S('.') && *relIt != _S('/'))
{
--relIt;