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
f222f564
Commit
f222f564
authored
Sep 06, 2020
by
Esme Povirk
Committed by
Alexandre Julliard
Sep 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree: Use exe basename to name the default domain.
Signed-off-by:
Esme Povirk
<
esme@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e8bb3dbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
metahost.c
dlls/mscoree/metahost.c
+22
-2
No files found.
dlls/mscoree/metahost.c
View file @
f222f564
...
...
@@ -298,6 +298,21 @@ fail:
return
E_FAIL
;
}
static
char
*
get_exe_basename_utf8
(
void
)
{
WCHAR
filenameW
[
MAX_PATH
],
*
basenameW
;
GetModuleFileNameW
(
NULL
,
filenameW
,
MAX_PATH
);
basenameW
=
wcsrchr
(
filenameW
,
'\\'
);
if
(
basenameW
)
basenameW
+=
1
;
else
basenameW
=
filenameW
;
return
WtoA
(
basenameW
);
}
MonoDomain
*
get_root_domain
(
void
)
{
static
MonoDomain
*
root_domain
;
...
...
@@ -309,8 +324,13 @@ MonoDomain* get_root_domain(void)
if
(
root_domain
==
NULL
)
{
/* FIXME: Use exe filename to name the domain? */
root_domain
=
mono_jit_init_version
(
"mscorlib.dll"
,
"v4.0.30319"
);
char
*
exe_basename
;
exe_basename
=
get_exe_basename_utf8
();
root_domain
=
mono_jit_init_version
(
exe_basename
,
"v4.0.30319"
);
HeapFree
(
GetProcessHeap
(),
0
,
exe_basename
);
is_mono_started
=
TRUE
;
}
...
...
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