This commit is contained in:
Jack Andersen 2017-11-07 16:29:58 -10:00
commit 97e257418f
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ ProjectRootPath SearchForProject(const SystemString& path, SystemString& subpath
SystemString::const_iterator origEnd = testRoot.getAbsolutePath().end();
while (end != origEnd && *end != _S('/') && *end != _S('\\'))
++end;
if (*end == _S('/') || *end == _S('\\'))
if (end != origEnd && (*end == _S('/') || *end == _S('\\')))
++end;
subpathOut.assign(end, origEnd);
return newRootPath;