mirror of https://github.com/debauchee/barrier.git
fixed: bad #if usage
This commit is contained in:
parent
8c99a5f60d
commit
786ddba1c9
|
@ -471,7 +471,7 @@ bool MainWindow::clientArgs(QStringList& args, QString& app)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if Q_OS_WIN
|
#if defined(Q_OS_WIN)
|
||||||
// wrap in quotes so a malicious user can't start \Program.exe as admin.
|
// wrap in quotes so a malicious user can't start \Program.exe as admin.
|
||||||
app = QString("\"%1\"").arg(app);
|
app = QString("\"%1\"").arg(app);
|
||||||
#endif
|
#endif
|
||||||
|
@ -551,7 +551,7 @@ bool MainWindow::serverArgs(QStringList& args, QString& app)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if Q_OS_WIN
|
#if defined(Q_OS_WIN)
|
||||||
// wrap in quotes so a malicious user can't start \Program.exe as admin.
|
// wrap in quotes so a malicious user can't start \Program.exe as admin.
|
||||||
app = QString("\"%1\"").arg(app);
|
app = QString("\"%1\"").arg(app);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue