Merge pull request #3901 from nextcloud/bugfix/win-remove-cwd-from-dll-search-path

Windows. Remove CWD from DLL search paths.
This commit is contained in:
allexzander 2021-10-19 10:27:28 +03:00 committed by GitHub
commit 426fd2238d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -310,6 +310,9 @@ void selectiveSyncFixup(OCC::SyncJournalDb *journal, const QStringList &newList)
int main(int argc, char **argv)
{
#ifdef Q_OS_WIN
SetDllDirectory(L"");
#endif
QCoreApplication app(argc, argv);
#ifdef Q_OS_WIN

View file

@ -57,6 +57,9 @@ void warnSystray()
int main(int argc, char **argv)
{
#ifdef Q_OS_WIN
SetDllDirectory(L"");
#endif
Q_INIT_RESOURCE(resources);
Q_INIT_RESOURCE(theme);