From ce228e512cfd2b249a1ebc2ef0e576825afb29a0 Mon Sep 17 00:00:00 2001 From: Tannin Date: Wed, 25 Feb 2015 17:53:48 +0100 Subject: - No longer setting the dll directory as a windows search folder for dlls because that appears to remove another search folder AND the configured seach folders seem to be inherited by processes started from MO (both confirmed only in windows 8.1) --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 8507d725..bc89375e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -323,8 +323,6 @@ int main(int argc, char *argv[]) } } - application.setLibraryPaths(QStringList() << (application.applicationDirPath() + "/dlls")); - SetUnhandledExceptionFilter(MyUnhandledExceptionFilter); if (!HaveWriteAccess(ToWString(application.applicationDirPath()))) { @@ -351,6 +349,9 @@ int main(int argc, char *argv[]) splash.show(); { // extend path to include dll directory so plugins don't need a manifest + // (using AddDllDirectory would be an alternative to this but it seems fairly complicated esp. + // since it isn't easily accessible on Windows < 8 + // SetDllDirectory replaces other search directories and this seems to propagate to child processes) static const int BUFSIZE = 4096; boost::scoped_array oldPath(new TCHAR[BUFSIZE]); -- cgit v1.3.1