Commit 0af8e812 authored by Hao Peng's avatar Hao Peng Committed by Alexandre Julliard

svchost: Add LOAD_WITH_ALTERED_SEARCH_PATH flag when loading the dll.

parent c639e757
...@@ -204,7 +204,7 @@ static BOOL AddServiceElem(LPWSTR service_name, ...@@ -204,7 +204,7 @@ static BOOL AddServiceElem(LPWSTR service_name,
RegCloseKey(service_hkey); RegCloseKey(service_hkey);
/* Load the DLL and obtain a pointer to ServiceMain entry point */ /* 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) if (!library)
{ {
WINE_ERR("failed to load library %s, err=%u\n", WINE_ERR("failed to load library %s, err=%u\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment