This commit is contained in:
pavlov%pavlov.net 2006-02-10 20:26:28 +00:00
Родитель 8bdb888f26
Коммит 96977de95a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -417,7 +417,7 @@ void nsFileSpec::GetParent(nsFileSpec& outSpec) const
outSpec.mPath = mPath;
char* chars = (char*)outSpec.mPath;
chars[outSpec.mPath.Length() - 1] = '\0'; // avoid trailing separator, if any
unsigned char* cp = _mbsrchr((const unsigned char*)chars, '\\');
unsigned char* cp = _mbsrchr((unsigned char*)chars, '\\');
if (cp++)
outSpec.mPath.SetLength(cp - (unsigned char*)chars); // truncate.
} // nsFileSpec::GetParent