From 73dba004e826ec541b01369c275cb7a1e33fb857 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Wed, 23 May 2012 20:19:44 +0300 Subject: [PATCH] Dialog manage: Fixed that Themes folder is not created if it doesn't exist --- Library/DialogManage.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/DialogManage.cpp b/Library/DialogManage.cpp index 0f26b630..6e18744d 100644 --- a/Library/DialogManage.cpp +++ b/Library/DialogManage.cpp @@ -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)