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
2c2d5302
Commit
2c2d5302
authored
Oct 01, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Oct 13, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree: Use the new Mono runtime search code in GetRequestedRuntimeInfo.
parent
9d770349
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
70 additions
and
18 deletions
+70
-18
assembly.c
dlls/mscoree/assembly.c
+1
-0
corruntimehost.c
dlls/mscoree/corruntimehost.c
+1
-0
metahost.c
dlls/mscoree/metahost.c
+48
-0
mscoree_main.c
dlls/mscoree/mscoree_main.c
+17
-18
mscoree_private.h
dlls/mscoree/mscoree_private.h
+3
-0
No files found.
dlls/mscoree/assembly.c
View file @
2c2d5302
...
...
@@ -28,6 +28,7 @@
#include "dbghelp.h"
#include "ole2.h"
#include "corhdr.h"
#include "metahost.h"
#include "mscoree_private.h"
#include "wine/debug.h"
...
...
dlls/mscoree/corruntimehost.c
View file @
2c2d5302
...
...
@@ -29,6 +29,7 @@
#include "cor.h"
#include "mscoree.h"
#include "metahost.h"
#include "mscoree_private.h"
#include "wine/debug.h"
...
...
dlls/mscoree/metahost.c
View file @
2c2d5302
...
...
@@ -899,3 +899,51 @@ extern HRESULT CLRMetaHost_CreateInstance(REFIID riid, void **ppobj)
{
return
ICLRMetaHost_QueryInterface
((
ICLRMetaHost
*
)
&
GlobalCLRMetaHost
,
riid
,
ppobj
);
}
HRESULT
get_runtime_info
(
LPCWSTR
exefile
,
LPCWSTR
version
,
LPCWSTR
config_file
,
DWORD
startup_flags
,
DWORD
runtimeinfo_flags
,
BOOL
legacy
,
ICLRRuntimeInfo
**
result
)
{
static
const
DWORD
supported_startup_flags
=
0
;
static
const
DWORD
supported_runtime_flags
=
RUNTIME_INFO_UPGRADE_VERSION
;
int
i
;
if
(
exefile
)
FIXME
(
"ignoring exe filename %s
\n
"
,
debugstr_w
(
exefile
));
if
(
config_file
)
FIXME
(
"ignoring config filename %s
\n
"
,
debugstr_w
(
config_file
));
if
(
startup_flags
&
~
supported_startup_flags
)
FIXME
(
"unsupported startup flags %x
\n
"
,
startup_flags
&
~
supported_startup_flags
);
if
(
runtimeinfo_flags
&
~
supported_runtime_flags
)
FIXME
(
"unsupported runtimeinfo flags %x
\n
"
,
runtimeinfo_flags
&
~
supported_runtime_flags
);
if
(
version
)
{
return
CLRMetaHost_GetRuntime
(
0
,
version
,
&
IID_ICLRRuntimeInfo
,
(
void
**
)
result
);
}
if
(
runtimeinfo_flags
&
RUNTIME_INFO_UPGRADE_VERSION
)
{
find_runtimes
();
if
(
legacy
)
i
=
2
;
else
i
=
NUM_RUNTIMES
;
while
(
i
--
)
{
if
(
runtimes
[
i
].
mono_abi_version
)
return
IUnknown_QueryInterface
((
IUnknown
*
)
&
runtimes
[
i
],
&
IID_ICLRRuntimeInfo
,
(
void
**
)
result
);
}
ERR
(
"No %s.NET runtime installed
\n
"
,
legacy
?
"legacy "
:
""
);
return
CLR_E_SHIM_RUNTIME
;
}
return
CLR_E_SHIM_RUNTIME
;
}
dlls/mscoree/mscoree_main.c
View file @
2c2d5302
...
...
@@ -21,6 +21,7 @@
#include <stdarg.h>
#define COBJMACROS
#include "wine/unicode.h"
#include "wine/library.h"
#include "windef.h"
...
...
@@ -516,35 +517,33 @@ HRESULT WINAPI GetRequestedRuntimeInfo(LPCWSTR pExe, LPCWSTR pwszVersion, LPCWST
LPWSTR
pVersion
,
DWORD
cchBuffer
,
DWORD
*
dwlength
)
{
HRESULT
ret
;
DWORD
ver_len
,
dir_len
;
WCHAR
dirW
[
MAX_PATH
],
verW
[
MAX_PATH
]
;
ICLRRuntimeInfo
*
info
;
DWORD
length_dummy
;
FIXME
(
"(%s, %s, %s, 0x%08x, 0x%08x, %p, 0x%08x, %p, %p, 0x%08x, %p) semi-stub
\n
"
,
debugstr_w
(
pExe
),
TRACE
(
"(%s, %s, %s, 0x%08x, 0x%08x, %p, 0x%08x, %p, %p, 0x%08x, %p)
\n
"
,
debugstr_w
(
pExe
),
debugstr_w
(
pwszVersion
),
debugstr_w
(
pConfigurationFile
),
startupFlags
,
runtimeInfoFlags
,
pDirectory
,
dwDirectory
,
dwDirectoryLength
,
pVersion
,
cchBuffer
,
dwlength
);
if
(
!
pwszVersion
&&
!
(
runtimeInfoFlags
&
RUNTIME_INFO_UPGRADE_VERSION
))
return
CLR_E_SHIM_RUNTIME
;
if
(
!
dwDirectoryLength
)
dwDirectoryLength
=
&
length_dummy
;
ret
=
GetCORSystemDirectory
(
dirW
,
dwDirectory
,
&
dir_len
)
;
if
(
!
dwlength
)
dwlength
=
&
length_dummy
;
if
(
ret
==
S_OK
)
{
if
(
dwDirectoryLength
)
*
dwDirectoryLength
=
dir_len
;
if
(
pDirectory
)
lstrcpyW
(
pDirectory
,
dirW
);
ret
=
get_runtime_info
(
pExe
,
pwszVersion
,
pConfigurationFile
,
startupFlags
,
runtimeInfoFlags
,
TRUE
,
&
info
);
ret
=
GetCORVersion
(
verW
,
cchBuffer
,
&
ver_len
);
if
(
SUCCEEDED
(
ret
))
{
*
dwlength
=
cchBuffer
;
ret
=
ICLRRuntimeInfo_GetVersionString
(
info
,
pVersion
,
dwlength
);
if
(
ret
==
S_OK
)
if
(
SUCCEEDED
(
ret
)
)
{
if
(
dwlength
)
*
dwlength
=
ver_len
;
if
(
pVersion
)
lstrcpyW
(
pVersion
,
verW
);
*
dwDirectoryLength
=
dwDirectory
;
ret
=
ICLRRuntimeInfo_GetRuntimeDirectory
(
info
,
pDirectory
,
dwDirectoryLength
);
}
ICLRRuntimeInfo_Release
(
info
);
}
return
ret
;
}
...
...
dlls/mscoree/mscoree_private.h
View file @
2c2d5302
...
...
@@ -45,6 +45,9 @@ typedef struct CLRRuntimeInfo
struct
RuntimeHost
*
loaded_runtime
;
}
CLRRuntimeInfo
;
extern
HRESULT
get_runtime_info
(
LPCWSTR
exefile
,
LPCWSTR
version
,
LPCWSTR
config_file
,
DWORD
startup_flags
,
DWORD
runtimeinfo_flags
,
BOOL
legacy
,
ICLRRuntimeInfo
**
result
);
/* Mono 2.6 embedding */
typedef
struct
_MonoDomain
MonoDomain
;
typedef
struct
_MonoAssembly
MonoAssembly
;
...
...
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