summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2013-06-17 13:34:21 +0200
committerKai Koehne <kai.koehne@digia.com>2013-06-17 16:28:51 +0200
commit327dea78668e6d2fc26b0970cbaa1d2c584640c0 (patch)
tree5f741db329a0bbc46ac0a345b104b213cbfbce6e
parent0dcb65d57587b0507eedb5b6b4388bb96fc21ce5 (diff)
Set SEE_MASK_NOASYNC when launching elevated process
Set the SEE_MASK_NOASYNC flag in the hope to fix the mysterious "Couldn't get authorization" error. This requires the platform API from MSVC 2007 or newer. Task-number: QTBUG-31788 Change-Id: Ida254820e7c46e80bc2269531183c206c1fe2c8d Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
-rw-r--r--src/libs/installer/adminauthorization_win.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/installer/adminauthorization_win.cpp b/src/libs/installer/adminauthorization_win.cpp
index 5337747fc..7d28deb22 100644
--- a/src/libs/installer/adminauthorization_win.cpp
+++ b/src/libs/installer/adminauthorization_win.cpp
@@ -137,6 +137,7 @@ bool AdminAuthorization::execute(QWidget *, const QString &program, const QStrin
shellExecuteInfo.lpFile = (wchar_t *)file.utf16();
shellExecuteInfo.cbSize = sizeof(SHELLEXECUTEINFOW);
shellExecuteInfo.lpParameters = (wchar_t *)args.utf16();
+ shellExecuteInfo.fMask = SEE_MASK_NOASYNC;
qDebug() << QString::fromLatin1("Starting elevated process %1 with arguments: %2.").arg(file, args);