diff --git a/SandboxiePlus/QSbieAPI/Sandboxie/SandBox.cpp b/SandboxiePlus/QSbieAPI/Sandboxie/SandBox.cpp index a8162f71..cab33b71 100644 --- a/SandboxiePlus/QSbieAPI/Sandboxie/SandBox.cpp +++ b/SandboxiePlus/QSbieAPI/Sandboxie/SandBox.cpp @@ -134,13 +134,13 @@ void CSandBox::SetBoxPaths(const QString& FilePath, const QString& RegPath, cons m_IpcPath = IpcPath; } -SB_STATUS CSandBox::RunStart(const QString& Command, bool Elevated) +SB_STATUS CSandBox::RunStart(const QString& Command, bool Elevated, const QString& WorkingDir) { #ifdef _DEBUG if ((QGuiApplication::queryKeyboardModifiers() & Qt::ControlModifier) != 0) return RunSandboxed(Command); #endif - return m_pAPI->RunStart(m_Name, Command, Elevated); + return m_pAPI->RunStart(m_Name, Command, Elevated, WorkingDir); } SB_STATUS CSandBox::RunSandboxed(const QString& Command) diff --git a/SandboxiePlus/QSbieAPI/Sandboxie/SandBox.h b/SandboxiePlus/QSbieAPI/Sandboxie/SandBox.h index 47f21335..0299ef8e 100644 --- a/SandboxiePlus/QSbieAPI/Sandboxie/SandBox.h +++ b/SandboxiePlus/QSbieAPI/Sandboxie/SandBox.h @@ -51,7 +51,7 @@ public: virtual int GetActiveProcessCount() const { return m_ActiveProcessCount; } - virtual SB_STATUS RunStart(const QString& Command, bool Elevated = false); + virtual SB_STATUS RunStart(const QString& Command, bool Elevated = false, const QString& WorkingDir = QString()); virtual SB_STATUS RunSandboxed(const QString& Command); virtual SB_STATUS TerminateAll(); @@ -103,4 +103,4 @@ protected: }; typedef QSharedPointer CSandBoxPtr; -typedef QWeakPointer CSandBoxRef; \ No newline at end of file +typedef QWeakPointer CSandBoxRef;