Skip to content

Commit

Permalink
1.15.5
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidXanatos committed Jan 16, 2025
1 parent 01ce105 commit 5654927
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- fixed Could not run x64 in ARM64 PC. [#4415](https://github.com/sandboxie-plus/Sandboxie/issues/4415)
- fixed issue with process self termination
- fixed msedge_elf.dll not found on windows 10 Arm64
- fixed win10 ARM64 cannot be used [#3600](https://github.com/sandboxie-plus/Sandboxie/issues/3600)

### Added
- Added HookTrace=y to debug api hooking
Expand Down
16 changes: 8 additions & 8 deletions SandboxiePlus/QSbieAPI/Sandboxie/SbieTemplates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,9 @@ bool CSbieTemplates::CheckTemplate(const QString& Name)

QString scan = pTemplate->GetText("Tmpl.Scan", QString(), false, false, true);
BOOL scanIpc = (scan.indexOf(L'i') != -1);
BOOL scanWin = (scan.indexOf(L'w') != -1);
BOOL scanSvc = (scan.indexOf(L's') != -1);
if (!(scanIpc || scanWin || scanSvc))
BOOL scanWindow = (scan.indexOf(L'w') != -1);
BOOL scanSoftware = (scan.indexOf(L's') != -1);
if (!(scanIpc || scanWindow || scanSoftware))
return false;

QList<QPair<QString, QString>> settings = pTemplate->GetIniSection(0, true);
Expand All @@ -386,7 +386,7 @@ bool CSbieTemplates::CheckTemplate(const QString& Name)
if (CheckObjects(value))
return true;
}
else if (scanWin && ((setting.compare("OpenWinClass", Qt::CaseInsensitive) == 0 || setting.compare("Tmpl.ScanWinClass", Qt::CaseInsensitive) == 0)))
else if (scanWindow && ((setting.compare("OpenWinClass", Qt::CaseInsensitive) == 0 || setting.compare("Tmpl.ScanWinClass", Qt::CaseInsensitive) == 0)))
{
// skip to unspecific entries
if(value.left(2).compare("*:") == 0)
Expand All @@ -395,22 +395,22 @@ bool CSbieTemplates::CheckTemplate(const QString& Name)
if (CheckClasses(value))
return true;
}
else if (scanSvc && setting.compare("Tmpl.ScanService", Qt::CaseInsensitive) == 0)
else if (scanSoftware && setting.compare("Tmpl.ScanService", Qt::CaseInsensitive) == 0)
{
if (CheckServices(value))
return true;
}
else if (scanSvc && setting.compare("Tmpl.ScanProduct", Qt::CaseInsensitive) == 0)
else if (scanSoftware && setting.compare("Tmpl.ScanProduct", Qt::CaseInsensitive) == 0)
{
if (CheckProducts(value))
return true;
}
else if (scanSvc && setting.compare("Tmpl.ScanKey", Qt::CaseInsensitive) == 0)
else if (scanSoftware && setting.compare("Tmpl.ScanKey", Qt::CaseInsensitive) == 0)
{
if (CheckRegistryKey(value))
return true;
}
else if (scanSvc && setting.compare("Tmpl.ScanFile", Qt::CaseInsensitive) == 0)
else if (scanSoftware && setting.compare("Tmpl.ScanFile", Qt::CaseInsensitive) == 0)
{
if (CheckFile(ExpandPath(value)))
return true;
Expand Down

0 comments on commit 5654927

Please sign in to comment.