mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fixed a problem that an UNC path isn't recognized as an absolute path in @include statement.
This commit is contained in:
parent
a204a2a827
commit
d4a1a4fadf
@ -935,7 +935,8 @@ void CConfigParser::ReadIniFile(const std::wstring& iniFile, int depth)
|
||||
{
|
||||
std::wstring strIncludeFile = buffer;
|
||||
ReplaceVariables(strIncludeFile);
|
||||
if (strIncludeFile.find(L':') == std::wstring::npos)
|
||||
if (strIncludeFile.find(L':') == std::wstring::npos &&
|
||||
(strIncludeFile.length() < 2 || (strIncludeFile[0] != L'\\' && strIncludeFile[0] != L'/') || (strIncludeFile[1] != L'\\' && strIncludeFile[1] != L'/')))
|
||||
{
|
||||
// It's a relative path so add the current path as a prefix
|
||||
strIncludeFile = CRainmeter::ExtractPath(iniFile) + strIncludeFile;
|
||||
|
Loading…
x
Reference in New Issue
Block a user