Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Don't search in hardcoded paths on Windows
Native Windows apps don't use "/usr" path to store system dlls. It's even more harm than good to search through these directories, since they are used in Cygwin and it can lead to accidentaly loading Cygwin DLLs into native Windows apps. Hardcoded paths are disabled for MINGW and MSWIN environments only. They are still present on Cygwin and MSYS2, because these POSIX-API based environments don't use LoadLibrary() but dl_open() to load DLLs.
- Loading branch information