mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:34:09 +00:00
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.
This commit is contained in:
parent
cb3388f76a
commit
6714e32d73
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue