Browse Source

Fix incorrect HINSTANCE -> int cast

pull/805/head
Tux3 / Mlkj / !Lev.uXFMLA 11 years ago
parent
commit
1197f296a4
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
  1. 2
      src/autoupdate.cpp

2
src/autoupdate.cpp

@ -393,7 +393,7 @@ void AutoUpdater::installLocalUpdate() @@ -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

Loading…
Cancel
Save