SkinInstaller: Fixed that user options weren't removed from installed themes

This commit is contained in:
Birunthan Mohanathas
2012-06-12 15:27:40 +03:00
parent c1680c6661
commit 33d7ba63ae
3 changed files with 61 additions and 24 deletions

View File

@ -877,7 +877,8 @@ int CRainmeter::Initialize(LPCWSTR iniPath)
// Get skin folder path
size_t len = GetPrivateProfileString(L"Rainmeter", L"SkinPath", L"", buffer, MAX_LINE_LENGTH, iniFile);
if (len > 0)
if (len > 0 &&
_waccess(buffer, 0) != -1) // Temporary fix
{
// Try Rainmeter.ini first
m_SkinPath.assign(buffer, len);