1.14.3
This commit is contained in:
parent
88c9d4fe32
commit
72d1510517
|
@ -490,8 +490,8 @@ void CSbieUtils::RemoveContextMenu2()
|
||||||
bool CSbieUtils::HasContextMenu3()
|
bool CSbieUtils::HasContextMenu3()
|
||||||
{
|
{
|
||||||
const wchar_t* key = L"Software\\Classes\\*\\shell\\addforce\\command";
|
const wchar_t* key = L"Software\\Classes\\*\\shell\\addforce\\command";
|
||||||
const wchar_t* key2 = L"Software\\Classes\\*\\folder\\addforce\\command";
|
//const wchar_t* key2 = L"Software\\Classes\\*\\Folder\\addforce\\command";
|
||||||
HKEY hkey;
|
HKEY hkey,hKey2;
|
||||||
LONG rc = RegOpenKeyEx(HKEY_CURRENT_USER, key, 0, KEY_READ, &hkey);
|
LONG rc = RegOpenKeyEx(HKEY_CURRENT_USER, key, 0, KEY_READ, &hkey);
|
||||||
if (rc != 0)
|
if (rc != 0)
|
||||||
return false;
|
return false;
|
||||||
|
@ -499,11 +499,11 @@ bool CSbieUtils::HasContextMenu3()
|
||||||
RegCloseKey(hkey);
|
RegCloseKey(hkey);
|
||||||
|
|
||||||
|
|
||||||
rc = RegOpenKeyEx(HKEY_CURRENT_USER, key2, 0, KEY_READ, &hkey);
|
/*rc = RegOpenKeyEx(HKEY_CURRENT_USER, key2, 0, KEY_READ, &hkey2);
|
||||||
if (rc != 0)
|
if (rc != 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
RegCloseKey(hkey);
|
RegCloseKey(hkey2);*/
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1648,7 +1648,7 @@ void CSandMan::OnMessage(const QString& MsgData)
|
||||||
theAPI->GetBoxByName(respone)->AppendText("ForceFolder", Message.mid(4).replace("\"",""));
|
theAPI->GetBoxByName(respone)->AppendText("ForceFolder", Message.mid(4).replace("\"",""));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
theAPI->GetBoxByName(respone)->AppendText("ForceProcess", Message.mid(4).replace("\"", "").mid(Message.lastIndexOf("/")));
|
theAPI->GetBoxByName(respone)->AppendText("ForceProcess", Message.mid(4).replace("\"", "").mid(Message.lastIndexOf("\\")));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue