mirror of
https://github.com/reactos/wine.git
synced 2025-01-31 17:23:53 +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…
x
Reference in New Issue
Block a user