mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Skin Installer: Fixed logic
This commit is contained in:
parent
1b9e1abcad
commit
6c2a5c662e
@ -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)
|
if (GetPrivateProfileString(L"Rainmeter", L"SkinPath", L"", buffer, MAX_LINE_LENGTH, buffer) > 0)
|
||||||
{
|
{
|
||||||
g_Data.skinsPath = buffer;
|
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'\\';
|
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)
|
if (GetPrivateProfileString(L"Rainmeter", L"SkinPath", L"", buffer, MAX_LINE_LENGTH, buffer) > 0)
|
||||||
{
|
{
|
||||||
g_Data.skinsPath = buffer;
|
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'\\';
|
g_Data.skinsPath += L'\\';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user