Module: wine Branch: master Commit: 6714e32d73409e7f4bea8f44b8be6aa4c29c9f25 URL: https://gitlab.winehq.org/wine/wine/-/commit/6714e32d73409e7f4bea8f44b8be6aa...
Author: Alistair Leslie-Hughes leslie_alistair@hotmail.com Date: Sun Feb 5 14:54:48 2023 +1100
odbccp32: Append DLL path when loading driver.
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)