Dialog manage: Fixed that Themes folder is not created if it doesn't exist

This commit is contained in:
Birunthan Mohanathas 2012-05-23 20:19:44 +03:00
parent 3dce61b3e1
commit 73dba004e8

View File

@ -1395,6 +1395,8 @@ INT_PTR CDialogManage::CTabThemes::OnCommand(WPARAM wParam, LPARAM lParam)
std::wstring theme = buffer;
std::wstring path = Rainmeter->GetSettingsPath() + L"Themes\\";
CreateDirectory(path.c_str(), 0);
path += theme;
bool alreadyExists = (_waccess(path.c_str(), 0) != -1);
if (alreadyExists)