[PATCH 0/1] MR2113: odbccp32: Append DLL path when loading driver.
For example, loading by full path, myodbc8a.dll causes a load failure since it dependencies libcrypto-1_1.dll, libssl-1_1.dll are in the DLL directory and not in the search path. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2113
From: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> For example, loading by full path myodbc8a.dll can cause a load failure since it dependencies libcrypto-1_1.dll, libssl-1_1.dll are in the DLL directory. --- dlls/odbccp32/odbccp32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/odbccp32/odbccp32.c b/dlls/odbccp32/odbccp32.c index 131cb158ed6..0025fad7c4b 100644 --- a/dlls/odbccp32/odbccp32.c +++ b/dlls/odbccp32/odbccp32.c @@ -271,7 +271,7 @@ static HMODULE load_config_driver(const WCHAR *driver) return NULL; } - hmod = LoadLibraryW(filename); + hmod = LoadLibraryExW(filename, NULL, LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR | LOAD_LIBRARY_SEARCH_DEFAULT_DIRS); HeapFree(GetProcessHeap(), 0, filename); if(!hmod) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/2113
participants (2)
-
Alistair Leslie-Hughes -
Alistair Leslie-Hughes (@alesliehughes)