Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
df3c911c
Commit
df3c911c
authored
Nov 17, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree: Store the Mono base directory in Unicode.
parent
0a443c1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
metahost.c
dlls/mscoree/metahost.c
+3
-3
No files found.
dlls/mscoree/metahost.c
View file @
df3c911c
...
...
@@ -711,7 +711,7 @@ static BOOL get_mono_path_registry(LPWSTR path)
static
BOOL
get_mono_path_dos
(
const
WCHAR
*
dir
,
LPWSTR
path
)
{
static
const
WCHAR
unix_prefix
[]
=
{
'\\'
,
'\\'
,
'?'
,
'\\'
,
'u'
,
'n'
,
'i'
,
'x'
,
'\\'
};
static
const
char
basedir
[]
=
"
\\
wine-mono-"
WINE_MONO_VERSION
;
static
const
WCHAR
basedir
[]
=
L
"
\\
wine-mono-"
WINE_MONO_VERSION
;
LPWSTR
dos_dir
;
WCHAR
mono_dll_path
[
MAX_PATH
];
DWORD
len
;
...
...
@@ -720,10 +720,10 @@ static BOOL get_mono_path_dos(const WCHAR *dir, LPWSTR path)
if
(
memcmp
(
dir
,
unix_prefix
,
sizeof
(
unix_prefix
))
==
0
)
return
FALSE
;
/* No drive letter for this directory */
len
=
lstrlenW
(
dir
)
+
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
basedir
,
-
1
,
NULL
,
0
)
;
len
=
lstrlenW
(
dir
)
+
lstrlenW
(
basedir
)
+
1
;
if
(
!
(
dos_dir
=
heap_alloc
(
len
*
sizeof
(
WCHAR
)
)))
return
FALSE
;
lstrcpyW
(
dos_dir
,
dir
);
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
basedir
,
-
1
,
dos_dir
+
lstrlenW
(
dos_dir
),
len
-
lstrlenW
(
dos_dir
)
);
lstrcatW
(
dos_dir
,
basedir
);
ret
=
find_mono_dll
(
dos_dir
,
mono_dll_path
);
if
(
ret
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment