Hao Peng : svchost: Add LOAD_WITH_ALTERED_SEARCH_PATH flag when loading the dll.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Sep 17 14:07:10 CDT 2014
Module: wine
Branch: master
Commit: 0af8e8123824e551b2eec27e5a6898b2c21939c6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0af8e8123824e551b2eec27e5a6898b2c21939c6
Author: Hao Peng <penghao at linuxdeepin.com>
Date: Wed Sep 17 17:39:40 2014 +0800
svchost: Add LOAD_WITH_ALTERED_SEARCH_PATH flag when loading the dll.
---
programs/svchost/svchost.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/svchost/svchost.c b/programs/svchost/svchost.c
index 8713b4a..7045104 100644
--- a/programs/svchost/svchost.c
+++ b/programs/svchost/svchost.c
@@ -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",
More information about the wine-cvs
mailing list