svchost: Add LOAD_WITH_ALTERED_SEARCH_PATH flag when loading the dll.

This commit is contained in:
Hao Peng 2014-09-17 17:39:40 +08:00 committed by Alexandre Julliard
parent c639e757d5
commit 0af8e81238

View file

@ -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",