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
d8f54b4d
Commit
d8f54b4d
authored
Nov 05, 2013
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Nov 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree: Implement IMetahostPolicy GetRequestedRuntime.
parent
ace3c315
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
2 deletions
+46
-2
metahost.c
dlls/mscoree/metahost.c
+46
-2
No files found.
dlls/mscoree/metahost.c
View file @
d8f54b4d
...
...
@@ -1190,11 +1190,52 @@ static HRESULT WINAPI metahostpolicy_GetRequestedRuntime(ICLRMetaHostPolicy *ifa
LPWSTR
pwzImageVersion
,
DWORD
*
pcchImageVersion
,
DWORD
*
pdwConfigFlags
,
REFIID
riid
,
LPVOID
*
ppRuntime
)
{
FIXME
(
"%d %p %p %p %p %p %p %p %s %p
\n
"
,
dwPolicyFlags
,
pwzBinary
,
pCfgStream
,
ICLRRuntimeInfo
*
result
;
HRESULT
hr
;
WCHAR
filename
[
MAX_PATH
];
const
WCHAR
*
path
=
NULL
;
int
flags
=
0
;
TRACE
(
"%d %p %p %p %p %p %p %p %s %p
\n
"
,
dwPolicyFlags
,
pwzBinary
,
pCfgStream
,
pwzVersion
,
pcchVersion
,
pwzImageVersion
,
pcchImageVersion
,
pdwConfigFlags
,
debugstr_guid
(
riid
),
ppRuntime
);
return
E_NOTIMPL
;
if
(
pCfgStream
)
FIXME
(
"ignoring config file stream
\n
"
);
if
(
pdwConfigFlags
)
FIXME
(
"ignoring config flags
\n
"
);
if
(
dwPolicyFlags
&
METAHOST_POLICY_USE_PROCESS_IMAGE_PATH
)
{
GetModuleFileNameW
(
0
,
filename
,
MAX_PATH
);
path
=
filename
;
}
else
if
(
pwzBinary
)
{
path
=
pwzBinary
;
}
if
(
dwPolicyFlags
&
METAHOST_POLICY_APPLY_UPGRADE_POLICY
)
flags
|=
RUNTIME_INFO_UPGRADE_VERSION
;
hr
=
get_runtime_info
(
path
,
pwzImageVersion
,
NULL
,
0
,
flags
,
FALSE
,
&
result
);
if
(
SUCCEEDED
(
hr
))
{
if
(
pwzImageVersion
)
{
/* Ignoring errors on purpose */
ICLRRuntimeInfo_GetVersionString
(
result
,
pwzImageVersion
,
pcchImageVersion
);
}
hr
=
ICLRRuntimeInfo_QueryInterface
(
result
,
riid
,
ppRuntime
);
ICLRRuntimeInfo_Release
(
result
);
}
TRACE
(
"<- 0x%08x
\n
"
,
hr
);
return
hr
;
}
static
const
struct
ICLRMetaHostPolicyVtbl
CLRMetaHostPolicy_vtbl
=
...
...
@@ -1327,6 +1368,9 @@ HRESULT get_runtime_info(LPCWSTR exefile, LPCWSTR version, LPCWSTR config_file,
if
(
runtimeinfo_flags
&
~
supported_runtime_flags
)
FIXME
(
"unsupported runtimeinfo flags %x
\n
"
,
runtimeinfo_flags
&
~
supported_runtime_flags
);
if
(
exefile
&&
!
exefile
[
0
])
exefile
=
NULL
;
if
(
exefile
&&
!
config_file
)
{
strcpyW
(
local_config_file
,
exefile
);
...
...
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