[PATCH] mscoree: Leave the last backslash on application base path
Andrew Eikum
aeikum at codeweavers.com
Fri Dec 16 14:50:30 CST 2016
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
---
This fixes a regression introduced by
4d44363e604858a93da3dcb41fd91938fdc4c227, see Bug 40429.
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);
--
2.10.2
More information about the wine-patches
mailing list