Skin Installer: Fixed logic

This commit is contained in:
Birunthan Mohanathas 2012-06-28 10:24:30 +03:00
parent 1b9e1abcad
commit 6c2a5c662e

View File

@ -75,7 +75,7 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLi
if (GetPrivateProfileString(L"Rainmeter", L"SkinPath", L"", buffer, MAX_LINE_LENGTH, buffer) > 0)
{
g_Data.skinsPath = buffer;
if (g_Data.skinsPath.back() != L'\\' || g_Data.skinsPath.back() != L'/')
if (g_Data.skinsPath.back() != L'\\' && g_Data.skinsPath.back() != L'/')
{
g_Data.skinsPath += L'\\';
}
@ -98,7 +98,7 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLi
if (GetPrivateProfileString(L"Rainmeter", L"SkinPath", L"", buffer, MAX_LINE_LENGTH, buffer) > 0)
{
g_Data.skinsPath = buffer;
if (g_Data.skinsPath.back() != L'\\' || g_Data.skinsPath.back() != L'/')
if (g_Data.skinsPath.back() != L'\\' && g_Data.skinsPath.back() != L'/')
{
g_Data.skinsPath += L'\\';
}