Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4b3f3021
Commit
4b3f3021
authored
Oct 03, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Nov 11, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree: Search for mono installs with the 2.0 abi.
parent
ac816c2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
metahost.c
dlls/mscoree/metahost.c
+20
-4
No files found.
dlls/mscoree/metahost.c
View file @
4b3f3021
...
...
@@ -66,7 +66,7 @@ static CRITICAL_SECTION_DEBUG runtime_list_cs_debug =
};
static
CRITICAL_SECTION
runtime_list_cs
=
{
&
runtime_list_cs_debug
,
-
1
,
0
,
0
,
0
,
0
};
#define NUM_ABI_VERSIONS
1
#define NUM_ABI_VERSIONS
2
static
loaded_mono
loaded_monos
[
NUM_ABI_VERSIONS
];
...
...
@@ -122,8 +122,6 @@ static HRESULT load_mono(CLRRuntimeInfo *This, loaded_mono **result)
if
(
!
find_mono_dll
(
This
->
mono_path
,
mono_dll_path
,
This
->
mono_abi_version
))
goto
fail
;
if
(
This
->
mono_abi_version
!=
1
)
goto
fail
;
(
*
result
)
->
mono_handle
=
LoadLibraryW
(
mono_dll_path
);
if
(
!
(
*
result
)
->
mono_handle
)
goto
fail
;
...
...
@@ -451,6 +449,8 @@ static BOOL find_mono_dll(LPCWSTR path, LPWSTR dll_path, int abi_version)
{
static
const
WCHAR
mono_dll
[]
=
{
'\\'
,
'b'
,
'i'
,
'n'
,
'\\'
,
'm'
,
'o'
,
'n'
,
'o'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
libmono_dll
[]
=
{
'\\'
,
'b'
,
'i'
,
'n'
,
'\\'
,
'l'
,
'i'
,
'b'
,
'm'
,
'o'
,
'n'
,
'o'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
mono2_dll
[]
=
{
'\\'
,
'b'
,
'i'
,
'n'
,
'\\'
,
'm'
,
'o'
,
'n'
,
'o'
,
'-'
,
'2'
,
'.'
,
'0'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
libmono2_dll
[]
=
{
'\\'
,
'b'
,
'i'
,
'n'
,
'\\'
,
'l'
,
'i'
,
'b'
,
'm'
,
'o'
,
'n'
,
'o'
,
'-'
,
'2'
,
'.'
,
'0'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
DWORD
attributes
=
INVALID_FILE_ATTRIBUTES
;
if
(
abi_version
==
1
)
...
...
@@ -466,6 +466,19 @@ static BOOL find_mono_dll(LPCWSTR path, LPWSTR dll_path, int abi_version)
attributes
=
GetFileAttributesW
(
dll_path
);
}
}
else
if
(
abi_version
==
2
)
{
strcpyW
(
dll_path
,
path
);
strcatW
(
dll_path
,
mono2_dll
);
attributes
=
GetFileAttributesW
(
dll_path
);
if
(
attributes
==
INVALID_FILE_ATTRIBUTES
)
{
strcpyW
(
dll_path
,
path
);
strcatW
(
dll_path
,
libmono2_dll
);
attributes
=
GetFileAttributesW
(
dll_path
);
}
}
return
(
attributes
!=
INVALID_FILE_ATTRIBUTES
);
}
...
...
@@ -514,6 +527,7 @@ static BOOL get_mono_path_from_registry(LPWSTR path, int abi_version)
static
BOOL
get_mono_path_from_folder
(
LPCWSTR
folder
,
LPWSTR
mono_path
,
int
abi_version
)
{
static
const
WCHAR
mono_one_dot_zero
[]
=
{
'\\'
,
'm'
,
'o'
,
'n'
,
'o'
,
'-'
,
'1'
,
'.'
,
'0'
,
0
};
static
const
WCHAR
mono_two_dot_zero
[]
=
{
'\\'
,
'm'
,
'o'
,
'n'
,
'o'
,
'-'
,
'2'
,
'.'
,
'0'
,
0
};
WCHAR
mono_dll_path
[
MAX_PATH
];
BOOL
found
=
FALSE
;
...
...
@@ -521,6 +535,8 @@ static BOOL get_mono_path_from_folder(LPCWSTR folder, LPWSTR mono_path, int abi_
if
(
abi_version
==
1
)
strcatW
(
mono_path
,
mono_one_dot_zero
);
else
if
(
abi_version
==
2
)
strcatW
(
mono_path
,
mono_two_dot_zero
);
found
=
find_mono_dll
(
mono_path
,
mono_dll_path
,
abi_version
);
...
...
@@ -593,7 +609,7 @@ static void find_runtimes(void)
if
(
runtimes_initialized
)
goto
end
;
for
(
abi_version
=
1
;
abi_version
>
0
;
abi_version
--
)
for
(
abi_version
=
NUM_ABI_VERSIONS
;
abi_version
>
0
;
abi_version
--
)
{
if
(
!
get_mono_path
(
mono_path
,
abi_version
))
continue
;
...
...
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