diff --git a/Sandboxie/core/drv/file_flt.c b/Sandboxie/core/drv/file_flt.c index cdfc7f22..e7f90089 100644 --- a/Sandboxie/core/drv/file_flt.c +++ b/Sandboxie/core/drv/file_flt.c @@ -508,7 +508,7 @@ check: if (Box_IsBoxedPath(proc->box, file, &Name->Name)) { - if(Conf_Get_Boolean(NULL, L"NotifyImageLoadDenied", 0, TRUE)) + if(Conf_Get_Boolean(proc->box->name, L"NotifyImageLoadDenied", 0, TRUE)) Log_Msg_Process(MSG_1305, Name->Name.Buffer + (proc->box->file_path_len/sizeof(WCHAR) - 1), NULL, proc->box->session_id, proc->pid); Log_Debug_Msg(MONITOR_IMAGE | MONITOR_DENY, NULL, Name->Name.Buffer); diff --git a/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp b/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp index 47e58ac1..eb6a24fa 100644 --- a/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp +++ b/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp @@ -98,7 +98,7 @@ void COptionsWindow::CreateAdvanced() connect(ui.btnDelHostProcess, SIGNAL(clicked(bool)), this, SLOT(OnDelHostProcess())); connect(ui.chkShowHostProcTmpl, SIGNAL(clicked(bool)), this, SLOT(OnShowHostProcTmpl())); connect(ui.chkConfidential, SIGNAL(clicked(bool)), this, SLOT(OnAdvancedChanged())); // todo notify premium feature - connect(ui.chkHostProtect, SIGNAL(clicked(bool)), this, SLOT(OnAdvancedChanged())); + connect(ui.chkHostProtect, SIGNAL(clicked(bool)), this, SLOT(OnHostProtectChanged())); connect(ui.chkHostProtectMsg, SIGNAL(clicked(bool)), this, SLOT(OnAdvancedChanged())); connect(ui.btnAddUser, SIGNAL(clicked(bool)), this, SLOT(OnAddUser())); @@ -135,7 +135,9 @@ void COptionsWindow::LoadAdvanced() ui.chkOpenLsaEndpoint->setChecked(m_pBox->GetBool("OpenLsaEndpoint", false)); ui.chkHostProtect->setChecked(m_pBox->GetBool("ProtectHostImages", false)); + ui.chkHostProtectMsg->setEnabled(ui.chkHostProtect->isChecked()); ui.chkHostProtectMsg->setChecked(m_pBox->GetBool("NotifyImageLoadDenied", true)); + ReadGlobalCheck(ui.chkSbieLogon, "SandboxieLogon", false); LoadOptionList(); @@ -446,6 +448,12 @@ void COptionsWindow::OnNoWindowRename() DelAccessEntry(eWnd, "", eOpen, "#"); } +void COptionsWindow::OnHostProtectChanged() +{ + ui.chkHostProtectMsg->setEnabled(ui.chkHostProtect->isChecked()); + OnAdvancedChanged(); +} + // options void COptionsWindow::LoadOptionList() { diff --git a/SandboxiePlus/SandMan/Windows/OptionsWindow.h b/SandboxiePlus/SandMan/Windows/OptionsWindow.h index df25e9fd..ae5d5421 100644 --- a/SandboxiePlus/SandMan/Windows/OptionsWindow.h +++ b/SandboxiePlus/SandMan/Windows/OptionsWindow.h @@ -103,6 +103,8 @@ private slots: //void OnShowStartTmpl() { LoadStartTmpl(true); } void OnStartChanged(QTreeWidgetItem* pItem, int Index); + void OnHostProtectChanged(); + // net void OnINetItemDoubleClicked(QTreeWidgetItem* pItem, int Column); void OnINetSelectionChanged() { CloseINetEdit(); OnOptChanged();}