mirror of
https://github.com/2dust/v2rayN.git
synced 2025-05-02 21:28:51 +00:00
commit
dc72c949c3
1 changed files with 2 additions and 2 deletions
|
@ -536,7 +536,7 @@ namespace v2rayN
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string exePath = GetExePath();
|
string exePath = GetExePath();
|
||||||
RegWriteValue(autoRunRegPath, autoRunName, run ? exePath : "");
|
RegWriteValue(autoRunRegPath, autoRunName, run ? ("\"" + exePath + "\"") : "");
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
@ -553,7 +553,7 @@ namespace v2rayN
|
||||||
{
|
{
|
||||||
string value = RegReadValue(autoRunRegPath, autoRunName, "");
|
string value = RegReadValue(autoRunRegPath, autoRunName, "");
|
||||||
string exePath = GetExePath();
|
string exePath = GetExePath();
|
||||||
if (value?.Equals(exePath) == true)
|
if (value?.Equals(exePath) == true || value?.Equals("\"" + exePath + "\"") == true)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue