mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Added quotes around filename when using ConfigEditor
This commit is contained in:
parent
2957e6fde2
commit
05d43047db
@ -1283,7 +1283,8 @@ void CRainmeter::ReloadSettings()
|
|||||||
|
|
||||||
void CRainmeter::EditSettings()
|
void CRainmeter::EditSettings()
|
||||||
{
|
{
|
||||||
RunFile(m_SkinEditor.c_str(), m_IniFile.c_str());
|
std::wstring file = L"\"" + m_IniFile + L"\"";
|
||||||
|
RunFile(m_SkinEditor.c_str(), file.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void CRainmeter::EditSkinFile(const std::wstring& name, const std::wstring& iniFile)
|
void CRainmeter::EditSkinFile(const std::wstring& name, const std::wstring& iniFile)
|
||||||
@ -1293,6 +1294,8 @@ void CRainmeter::EditSkinFile(const std::wstring& name, const std::wstring& iniF
|
|||||||
args += iniFile;
|
args += iniFile;
|
||||||
bool writable = CSystem::IsFileWritable(args.c_str());
|
bool writable = CSystem::IsFileWritable(args.c_str());
|
||||||
|
|
||||||
|
args = L"\"" + args + L"\"";
|
||||||
|
|
||||||
// Execute as admin if in protected location
|
// Execute as admin if in protected location
|
||||||
RunFile(m_SkinEditor.c_str(), args.c_str(), !writable);
|
RunFile(m_SkinEditor.c_str(), args.c_str(), !writable);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user