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
805da6bf
Commit
805da6bf
authored
Jul 14, 2014
by
Vincent Povirk
Committed by
Alexandre Julliard
Jul 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree: Accept "v4.0" as a runtime version in config files.
parent
cf50d5f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
metahost.c
dlls/mscoree/metahost.c
+12
-6
No files found.
dlls/mscoree/metahost.c
View file @
805da6bf
...
...
@@ -981,14 +981,12 @@ static BOOL parse_runtime_version(LPCWSTR version, DWORD *major, DWORD *minor, D
return
FALSE
;
}
HRESULT
WINAPI
CLRMetaHost_GetRuntime
(
ICLRMetaHost
*
iface
,
LPCWSTR
pwzVersion
,
REFIID
iid
,
LPVOID
*
ppRuntime
)
static
HRESULT
get_runtime
(
LPCWSTR
pwzVersion
,
BOOL
allow_short
,
REFIID
iid
,
LPVOID
*
ppRuntime
)
{
int
i
;
DWORD
major
,
minor
,
build
;
TRACE
(
"%s %s %p
\n
"
,
debugstr_w
(
pwzVersion
),
debugstr_guid
(
iid
),
ppRuntime
);
if
(
!
pwzVersion
)
return
E_POINTER
;
...
...
@@ -1003,7 +1001,7 @@ HRESULT WINAPI CLRMetaHost_GetRuntime(ICLRMetaHost* iface,
for
(
i
=
0
;
i
<
NUM_RUNTIMES
;
i
++
)
{
if
(
runtimes
[
i
].
major
==
major
&&
runtimes
[
i
].
minor
==
minor
&&
runtimes
[
i
].
build
==
build
)
(
runtimes
[
i
].
build
==
build
||
(
allow_short
&&
major
>=
4
&&
build
==
0
))
)
{
if
(
runtimes
[
i
].
found
)
return
ICLRRuntimeInfo_QueryInterface
(
&
runtimes
[
i
].
ICLRRuntimeInfo_iface
,
iid
,
...
...
@@ -1020,6 +1018,14 @@ HRESULT WINAPI CLRMetaHost_GetRuntime(ICLRMetaHost* iface,
return
CLR_E_SHIM_RUNTIME
;
}
HRESULT
WINAPI
CLRMetaHost_GetRuntime
(
ICLRMetaHost
*
iface
,
LPCWSTR
pwzVersion
,
REFIID
iid
,
LPVOID
*
ppRuntime
)
{
TRACE
(
"%s %s %p
\n
"
,
debugstr_w
(
pwzVersion
),
debugstr_guid
(
iid
),
ppRuntime
);
return
get_runtime
(
pwzVersion
,
FALSE
,
iid
,
ppRuntime
);
}
HRESULT
WINAPI
CLRMetaHost_GetVersionFromFile
(
ICLRMetaHost
*
iface
,
LPCWSTR
pwzFilePath
,
LPWSTR
pwzBuffer
,
DWORD
*
pcchBuffer
)
{
...
...
@@ -1389,7 +1395,7 @@ HRESULT get_runtime_info(LPCWSTR exefile, LPCWSTR version, LPCWSTR config_file,
supported_runtime
*
entry
;
LIST_FOR_EACH_ENTRY
(
entry
,
&
parsed_config
.
supported_runtimes
,
supported_runtime
,
entry
)
{
hr
=
CLRMetaHost_GetRuntime
(
0
,
entry
->
version
,
&
IID_ICLRRuntimeInfo
,
(
void
**
)
result
);
hr
=
get_runtime
(
entry
->
version
,
TRUE
,
&
IID_ICLRRuntimeInfo
,
(
void
**
)
result
);
if
(
SUCCEEDED
(
hr
))
{
found
=
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