mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix incorrect HINSTANCE -> int cast
This commit is contained in:
parent
69189034e3
commit
1197f296a4
|
@ -393,7 +393,7 @@ void AutoUpdater::installLocalUpdate()
|
||||||
// Workaround QTBUG-7645
|
// Workaround QTBUG-7645
|
||||||
// QProcess fails silently when elevation is required instead of showing a UAC prompt on Win7/Vista
|
// QProcess fails silently when elevation is required instead of showing a UAC prompt on Win7/Vista
|
||||||
#ifdef Q_OS_WIN
|
#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)
|
if (SE_ERR_ACCESSDENIED == result)
|
||||||
{
|
{
|
||||||
// Requesting elevation
|
// Requesting elevation
|
||||||
|
|
Loading…
Reference in New Issue
Block a user