Andrew Eikum : mscoree: Leave the last backslash on application base path.

Alexandre Julliard julliard at winehq.org
Mon Dec 19 16:53:07 CST 2016


Module: wine
Branch: master
Commit: 0ea8893e1c3dd9097df083b57c0d7442c3fb4f42
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0ea8893e1c3dd9097df083b57c0d7442c3fb4f42

Author: Andrew Eikum <aeikum at codeweavers.com>
Date:   Fri Dec 16 14:50:30 2016 -0600

mscoree: Leave the last backslash on application base path.

Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mscoree/corruntimehost.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/mscoree/corruntimehost.c b/dlls/mscoree/corruntimehost.c
index 94eca7f..86eb759 100644
--- a/dlls/mscoree/corruntimehost.c
+++ b/dlls/mscoree/corruntimehost.c
@@ -170,7 +170,7 @@ static HRESULT RuntimeHost_GetDefaultDomain(RuntimeHost *This, const WCHAR *conf
 
     slash = strrchr(base_dirA, '\\');
     if (slash)
-        *slash = 0;
+        *(slash + 1) = 0;
 
     TRACE("setting base_dir: %s, config_path: %s\n", base_dirA, config_pathA);
     mono_domain_set_config(This->default_domain, base_dirA, config_pathA);




More information about the wine-cvs mailing list