mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 05:45:40 +00:00
svchost: Add LOAD_WITH_ALTERED_SEARCH_PATH flag when loading the dll.
This commit is contained in:
parent
c639e757d5
commit
0af8e81238
|
@ -204,7 +204,7 @@ static BOOL AddServiceElem(LPWSTR service_name,
|
|||
RegCloseKey(service_hkey);
|
||||
|
||||
/* Load the DLL and obtain a pointer to ServiceMain entry point */
|
||||
library = LoadLibraryW(dll_name_long);
|
||||
library = LoadLibraryExW(dll_name_long, NULL, LOAD_WITH_ALTERED_SEARCH_PATH);
|
||||
if (!library)
|
||||
{
|
||||
WINE_ERR("failed to load library %s, err=%u\n",
|
||||
|
|
Loading…
Reference in a new issue