From: alex-z Date: Mon, 18 Oct 2021 12:30:44 +0000 (+0300) Subject: Windows. Remove CWD from DLL search paths. X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~18^2~157^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bd731a9cda379ff21faf442ef9e774746350eaef;p=nextcloud-desktop.git Windows. Remove CWD from DLL search paths. Signed-off-by: alex-z --- diff --git a/src/cmd/cmd.cpp b/src/cmd/cmd.cpp index b706a382b..3a399655a 100644 --- a/src/cmd/cmd.cpp +++ b/src/cmd/cmd.cpp @@ -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 diff --git a/src/gui/main.cpp b/src/gui/main.cpp index 47421220b..df7279308 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -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);