mirror of
https://github.com/QuasarApp/QuasarAppLib.git
synced 2025-04-26 09:44:38 +00:00
fix windows build
This commit is contained in:
parent
9c26f7af14
commit
7bd0fbeb56
@ -157,7 +157,7 @@ bool Params::parseParams(const QStringList ¶msArray) {
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
char buffer[MAX_PATH];
|
||||
memset(path, 0, sizeof path);
|
||||
memset(buffer, 0, sizeof buffer);
|
||||
|
||||
GetModuleFileNameA(nullptr, buffer, MAX_PATH);
|
||||
params ["appPath"] = QFileInfo(buffer).absolutePath();
|
||||
|
Loading…
x
Reference in New Issue
Block a user