This commit is contained in:
DavidXanatos 2022-05-01 10:55:14 +02:00
parent 3d3bf7d8cc
commit 954a30047a
2 changed files with 6 additions and 3 deletions

View File

@ -16,7 +16,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- fixed BSOD issue with driver [#1811](https://github.com/sandboxie-plus/Sandboxie/issues/1811)
- fixed issue with editing start restriction entries
- fixed issue with netwirk options tab [#1825](https://github.com/sandboxie-plus/Sandboxie/issues/1825)
- fixed portable mode issue when runnign sandman as admin [#1764](https://github.com/sandboxie-plus/Sandboxie/issues/1764)

View File

@ -153,8 +153,11 @@ SB_RESULT(void*) CSbieUtils::ElevateOps(const QStringList& Ops)
if (Ops.isEmpty())
return SB_OK;
if (IsProcessElevatd())
return ExecOps(Ops);
if (IsProcessElevatd()) {
SB_RESULT(void*) result = ExecOps(Ops);
QThread::msleep(1000); // wait for the operation to finish properly
return result;
}
wstring path = QCoreApplication::applicationFilePath().toStdWString();
wstring params = L"-assist \"" + Ops.join("\" \"").toStdWString() + L"\"";