From de3828a9e2bfad167ee463f5051f3efd2a669334 Mon Sep 17 00:00:00 2001 From: offhub Date: Mon, 28 Aug 2023 01:05:37 +0300 Subject: [PATCH] Update OptionsAdvanced.cpp Fixed a bug where InjectDll/InjectDll64 settings were not correctly added to the sandbox configuration when a DLL plugin was enabled. --- SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp b/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp index 433877e2..aa27d1df 100644 --- a/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp +++ b/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp @@ -156,8 +156,8 @@ void COptionsWindow::LoadAdvanced() int Count = 0; foreach(const QString & Key, InjectDlls.keys()) { QStringList List; - if (Key == "x64") List = InjectDll; - else if (Key == "x86") List = InjectDll64; + if (Key == "x64") List = InjectDll64; + else if (Key == "x86") List = InjectDll; #ifdef _M_ARM64 else if (Key == "a64") List = InjectDllARM64; #endif @@ -346,8 +346,8 @@ void COptionsWindow::SaveAdvanced() QVariantMap InjectDlls = pAddon->Data["injectDlls"].toMap(); foreach(const QString & Key, InjectDlls.keys()) { QStringList* pList; - if (Key == "x64") pList = &InjectDll; - else if (Key == "x86") pList = &InjectDll64; + if (Key == "x64") pList = &InjectDll64; + else if (Key == "x86") pList = &InjectDll; #ifdef _M_ARM64 else if (Key == "a64") pList = &InjectDllARM64; #endif