Some minor fixes.

This commit is contained in:
spx
2010-08-06 07:40:43 +00:00
parent 98c1f70f17
commit 2e32b0f5c1
3 changed files with 17 additions and 6 deletions

View File

@ -408,7 +408,8 @@ void CMeterImage::ReadConfig(const WCHAR* section)
m_Path = parser.ReadString(section, L"Path", L"");
if (!m_Path.empty())
{
if (m_Path[m_Path.length() - 1] != L'\\')
WCHAR ch = m_Path[m_Path.length() - 1];
if (ch != L'\\' && ch != L'/')
{
m_Path += L"\\";
}