From 1197f296a4a27d03291d3ca4409f6b8836e1b02a Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Tue, 18 Nov 2014 01:48:44 +0100 Subject: [PATCH] Fix incorrect HINSTANCE -> int cast --- src/autoupdate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/autoupdate.cpp b/src/autoupdate.cpp index a9189f1c9..2fbcbe206 100644 --- a/src/autoupdate.cpp +++ b/src/autoupdate.cpp @@ -393,7 +393,7 @@ void AutoUpdater::installLocalUpdate() // Workaround QTBUG-7645 // QProcess fails silently when elevation is required instead of showing a UAC prompt on Win7/Vista #ifdef Q_OS_WIN - int result = (int)::ShellExecuteA(0, "open", updaterBin.toUtf8().constData(), 0, 0, SW_SHOWNORMAL); + HINSTANCE result = (int)::ShellExecuteA(0, "open", updaterBin.toUtf8().constData(), 0, 0, SW_SHOWNORMAL); if (SE_ERR_ACCESSDENIED == result) { // Requesting elevation