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
c99754ef
Commit
c99754ef
authored
Jun 07, 2012
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jun 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree: Use .NET 2.0 for 1.0 assemblies.
parent
7e9e8b6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
15 deletions
+6
-15
metahost.c
dlls/mscoree/metahost.c
+6
-15
No files found.
dlls/mscoree/metahost.c
View file @
c99754ef
...
...
@@ -45,7 +45,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
mscoree
);
static
const
WCHAR
net_11_subdir
[]
=
{
'1'
,
'.'
,
'0'
,
0
};
static
const
WCHAR
net_20_subdir
[]
=
{
'2'
,
'.'
,
'0'
,
0
};
static
const
WCHAR
net_40_subdir
[]
=
{
'4'
,
'.'
,
'0'
,
0
};
...
...
@@ -54,7 +53,7 @@ static const struct ICLRRuntimeInfoVtbl CLRRuntimeInfoVtbl;
#define NUM_RUNTIMES 3
static
struct
CLRRuntimeInfo
runtimes
[
NUM_RUNTIMES
]
=
{
{{
&
CLRRuntimeInfoVtbl
},
net_
11
_subdir
,
1
,
1
,
4322
,
0
},
{{
&
CLRRuntimeInfoVtbl
},
net_
20
_subdir
,
1
,
1
,
4322
,
0
},
{{
&
CLRRuntimeInfoVtbl
},
net_20_subdir
,
2
,
0
,
50727
,
0
},
{{
&
CLRRuntimeInfoVtbl
},
net_40_subdir
,
4
,
0
,
30319
,
0
}
};
...
...
@@ -123,14 +122,9 @@ MonoImage* (CDECL * const image_from_handle_fn[NUM_ABI_VERSIONS])(HMODULE module
image_open_module_handle_dummy_2
};
static
void
missing_runtime_message
(
const
CLRRuntimeInfo
*
This
)
static
void
missing_runtime_message
(
void
)
{
if
(
This
->
major
==
1
)
MESSAGE
(
"wine: Install Mono 2.6 for Windows to run .NET 1.1 applications.
\n
"
);
else
if
(
This
->
major
==
2
)
MESSAGE
(
"wine: Install Mono for Windows to run .NET 2.0 applications.
\n
"
);
else
if
(
This
->
major
==
4
)
MESSAGE
(
"wine: Install Mono 2.8 or greater for Windows to run .NET 4.0 applications.
\n
"
);
MESSAGE
(
"wine: Install Mono for Windows to run .NET applications.
\n
"
);
}
static
HRESULT
load_mono
(
CLRRuntimeInfo
*
This
,
loaded_mono
**
result
)
...
...
@@ -147,7 +141,7 @@ static HRESULT load_mono(CLRRuntimeInfo *This, loaded_mono **result)
if
(
This
->
mono_abi_version
<=
0
||
This
->
mono_abi_version
>
NUM_ABI_VERSIONS
)
{
missing_runtime_message
(
This
);
missing_runtime_message
();
return
E_FAIL
;
}
...
...
@@ -1078,7 +1072,7 @@ HRESULT WINAPI CLRMetaHost_GetRuntime(ICLRMetaHost* iface,
ppRuntime
);
else
{
missing_runtime_message
(
&
runtimes
[
i
]
);
missing_runtime_message
();
return
CLR_E_SHIM_RUNTIME
;
}
}
...
...
@@ -1390,10 +1384,7 @@ HRESULT get_runtime_info(LPCWSTR exefile, LPCWSTR version, LPCWSTR config_file,
}
}
if
(
legacy
)
missing_runtime_message
(
&
runtimes
[
1
]);
else
missing_runtime_message
(
&
runtimes
[
NUM_RUNTIMES
-
1
]);
missing_runtime_message
();
return
CLR_E_SHIM_RUNTIME
;
}
...
...
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