Skip to content

Commit

Permalink
Windows. Remove CWD from DLL search paths.
Browse files Browse the repository at this point in the history
Signed-off-by: alex-z <blackslayer4@gmail.com>
  • Loading branch information
allexzander committed Oct 28, 2021
1 parent e9a9455 commit 9f74f85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cmd/cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,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
Expand Down
3 changes: 3 additions & 0 deletions src/gui/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ void warnSystray()

int main(int argc, char **argv)
{
#ifdef Q_OS_WIN
SetDllDirectory(L"");
#endif
Q_INIT_RESOURCE(resources);
Q_INIT_RESOURCE(theme);

Expand Down

0 comments on commit 9f74f85

Please sign in to comment.