mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fixed the crash issue that the commandline option length is less than 4 characters.
This commit is contained in:
parent
229fc944e8
commit
ff04d39bad
@ -1247,7 +1247,7 @@ int CRainmeter::Initialize(HWND Parent, HINSTANCE Instance, LPCSTR szPath)
|
|||||||
{
|
{
|
||||||
iniFile += L"Rainmeter.ini";
|
iniFile += L"Rainmeter.ini";
|
||||||
}
|
}
|
||||||
else if (iniFile.substr(iniFile.length() - 4) != L".ini")
|
else if (iniFile.length() <= 4 || iniFile.substr(iniFile.length() - 4) != L".ini")
|
||||||
{
|
{
|
||||||
iniFile += L"\\Rainmeter.ini";
|
iniFile += L"\\Rainmeter.ini";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user