Commit 3649fe09 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

mscoree: Handle the shared wine-mono installation like the msi case.

Expect to find the wine-mono-<ver> directory in the same location as the msi file, that is inside the mono directory. Signed-off-by: 's avatarFrancois Gouget <fgouget@codeweavers.com> Signed-off-by: 's avatarVincent Povirk <vincent@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent c2d35ed1
......@@ -785,7 +785,7 @@ static BOOL get_mono_path_datadir(LPWSTR path)
static const WCHAR winebuilddirW[] = {'W','I','N','E','B','U','I','L','D','D','I','R',0};
static const WCHAR unix_prefix[] = {'\\','?','?','\\','u','n','i','x','\\'};
static const WCHAR monoW[] = {'\\','m','o','n','o',0};
static const WCHAR dotdotW[] = {'\\','.','.',0};
static const WCHAR dotdotmonoW[] = {'\\','.','.','\\','m','o','n','o',0};
const WCHAR *data_dir, *suffix;
WCHAR *package_dir;
BOOL ret;
......@@ -793,7 +793,7 @@ static BOOL get_mono_path_datadir(LPWSTR path)
if ((data_dir = _wgetenv( winedatadirW )))
suffix = monoW;
else if ((data_dir = _wgetenv( winebuilddirW )))
suffix = dotdotW;
suffix = dotdotmonoW;
else
return FALSE;
......
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