This commit is contained in:
love-code-yeyixiao 2024-07-02 08:55:02 +08:00
parent 88c9d4fe32
commit 72d1510517
2 changed files with 5 additions and 5 deletions

View File

@ -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;
} }

View File

@ -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("\\")));
} }
} }