This commit is contained in:
DavidXanatos 2023-01-09 19:56:28 +01:00
parent d5882c3167
commit 435514841e
3 changed files with 13 additions and 2 deletions

View File

@ -11,6 +11,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Changed
- reworked trace log model, now it can load over 10e6 entries in under 1 second
- removed ApiLog support is now hidden from the trace UI when the apropriate dll's are missing
### Fixed
- fixed issue with Microsoft Edge in a security enhanced box [#2571](https://github.com/sandboxie-plus/Sandboxie/issues/2571)
@ -19,6 +20,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## [1.6.4 / 5.61.4] - 2022-12-31
### Added

View File

@ -661,12 +661,18 @@ void CSandBoxPlus::SetLogApi(bool bEnable)
//InsertText("OpenPipePath", "\\Device\\NamedPipe\\LogAPI");
InsertText("InjectDll", "\\LogAPI\\logapi32.dll");
InsertText("InjectDll64", "\\LogAPI\\logapi64.dll");
#ifdef _M_ARM64
InsertText("InjectDllARM64", "\\LogAPI\\logapi64a.dll");
#endif
}
else
{
//DelValue("OpenPipePath", "\\Device\\NamedPipe\\LogAPI");
DelValue("InjectDll", "\\LogAPI\\logapi32.dll");
DelValue("InjectDll64", "\\LogAPI\\logapi64.dll");
#ifdef _M_ARM64
DelValue("InjectDllARM64", "\\LogAPI\\logapi64a.dll");
#endif
}
m_bLogApiFound = bEnable;
}

View File

@ -149,8 +149,11 @@ void COptionsWindow::LoadAdvanced()
ui.chkDbgTrace->setChecked(m_pBox->GetBool("DebugTrace", false));
ui.chkErrTrace->setChecked(m_pBox->GetBool("ErrorTrace", false));
QSharedPointer<CSandBoxPlus> pBoxPlus = m_pBox.objectCast<CSandBoxPlus>();
if (pBoxPlus)
if (pBoxPlus) {
QString logApiPath = theAPI->GetSbiePath() + "\\LogAPI\\logapi32.dll";
ui.chkApiTrace->setVisible(QFile::exists(logApiPath));
ui.chkApiTrace->setChecked(pBoxPlus->HasLogApi());
}
// triggers
ui.treeTriggers->clear();
@ -283,7 +286,7 @@ void COptionsWindow::SaveAdvanced()
WriteAdvancedCheck(ui.chkDbgTrace, "DebugTrace", "y");
WriteAdvancedCheck(ui.chkErrTrace, "ErrorTrace", "y");
QSharedPointer<CSandBoxPlus> pBoxPlus = m_pBox.objectCast<CSandBoxPlus>();
if (pBoxPlus)
if (pBoxPlus && ui.chkApiTrace->isVisible())
pBoxPlus->SetLogApi(ui.chkApiTrace->isChecked());
// triggers