From f446607876315890fca5c04f5f7e3586517d21bc Mon Sep 17 00:00:00 2001 From: DavidXanatos Date: Wed, 20 Oct 2021 15:06:52 +0200 Subject: [PATCH] fixes --- Installer/Sandboxie-Plus.iss | 2 +- SandboxiePlus/SandMan/SbiePlusAPI.cpp | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Installer/Sandboxie-Plus.iss b/Installer/Sandboxie-Plus.iss index 66520053..03ecd9a1 100644 --- a/Installer/Sandboxie-Plus.iss +++ b/Installer/Sandboxie-Plus.iss @@ -101,7 +101,7 @@ Filename: "{app}\KmdUtil.exe"; Parameters: "start SbieSvc"; StatusMsg: "KmdUtil ; Start the Sandman UI. ;Filename: "{app}\SandMan.exe"; Parameters: "-autorun"; StatusMsg: "Launch SandMan UI..."; Flags: postinstall nowait; Check: not IsPortable -Filename: "{app}\SandMan.exe"; Parameters: "-autorun"; StatusMsg: "Launch SandMan UI..."; Flags: nowait; Check: not IsPortable +Filename: "{app}\SandMan.exe"; Parameters: "-autorun"; StatusMsg: "Launch SandMan UI..."; Flags: runasoriginaluser nowait; Check: not IsPortable [UninstallDelete] diff --git a/SandboxiePlus/SandMan/SbiePlusAPI.cpp b/SandboxiePlus/SandMan/SbiePlusAPI.cpp index 04a712cd..177bd198 100644 --- a/SandboxiePlus/SandMan/SbiePlusAPI.cpp +++ b/SandboxiePlus/SandMan/SbiePlusAPI.cpp @@ -115,11 +115,19 @@ void CSandBoxPlus::UpdateDetails() m_bINetBlocked = false; foreach(const QString& Entry, GetTextList("ClosedFilePath", false)) { - if (Entry.contains("InternetAccessDevices")) { + if (Entry == "!,InternetAccessDevices") { m_bINetBlocked = true; break; } } + foreach(const QString& Entry, GetTextList("AllowNetworkAccess", false)) + { + if (Entry == "!,n") { + m_bINetBlocked = true; + break; + } + } + m_bSharesAllowed = GetBool("BlockNetworkFiles", true) == false;