mirror of
https://github.com/2dust/v2rayN.git
synced 2025-12-10 21:40:10 +05:00
@@ -536,7 +536,7 @@ namespace v2rayN
|
||||
try
|
||||
{
|
||||
string exePath = GetExePath();
|
||||
RegWriteValue(autoRunRegPath, autoRunName, run ? exePath : "");
|
||||
RegWriteValue(autoRunRegPath, autoRunName, run ? ("\"" + exePath + "\"") : "");
|
||||
}
|
||||
catch
|
||||
{
|
||||
@@ -553,7 +553,7 @@ namespace v2rayN
|
||||
{
|
||||
string value = RegReadValue(autoRunRegPath, autoRunName, "");
|
||||
string exePath = GetExePath();
|
||||
if (value?.Equals(exePath) == true)
|
||||
if (value?.Equals(exePath) == true || value?.Equals("\"" + exePath + "\"") == true)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user