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
601b240f
Commit
601b240f
authored
Oct 01, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Nov 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree: Use the .NET 4 interfaces to implement CorBindToRuntimeEx.
parent
84ef0fca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
35 deletions
+14
-35
corruntimehost.c
dlls/mscoree/corruntimehost.c
+0
-27
mscoree_main.c
dlls/mscoree/mscoree_main.c
+14
-6
mscoree_private.h
dlls/mscoree/mscoree_private.h
+0
-2
No files found.
dlls/mscoree/corruntimehost.c
View file @
601b240f
...
...
@@ -42,7 +42,6 @@ struct RuntimeHost
const
CLRRuntimeInfo
*
version
;
const
loaded_mono
*
mono
;
LONG
ref
;
BOOL
legacy
;
/* if True, this was created by create_corruntimehost, and Release frees it */
};
static
inline
RuntimeHost
*
impl_from_ICorRuntimeHost
(
ICorRuntimeHost
*
iface
)
...
...
@@ -86,10 +85,6 @@ static ULONG WINAPI corruntimehost_Release(ICorRuntimeHost* iface)
ULONG
ref
;
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
ref
==
0
&&
This
->
legacy
)
{
RuntimeHost_Destroy
(
This
);
}
return
ref
;
}
...
...
@@ -289,7 +284,6 @@ HRESULT RuntimeHost_Construct(const CLRRuntimeInfo *runtime_version,
This
->
ref
=
1
;
This
->
version
=
runtime_version
;
This
->
mono
=
loaded_mono
;
This
->
legacy
=
FALSE
;
*
result
=
This
;
...
...
@@ -318,24 +312,3 @@ HRESULT RuntimeHost_Destroy(RuntimeHost *This)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
S_OK
;
}
IUnknown
*
create_corruntimehost
(
void
)
{
RuntimeHost
*
This
;
IUnknown
*
result
;
if
(
FAILED
(
RuntimeHost_Construct
(
NULL
,
NULL
,
&
This
)))
return
NULL
;
This
->
legacy
=
TRUE
;
if
(
FAILED
(
RuntimeHost_GetInterface
(
This
,
&
CLSID_CorRuntimeHost
,
&
IID_IUnknown
,
(
void
**
)
&
result
)))
{
RuntimeHost_Destroy
(
This
);
return
NULL
;
}
FIXME
(
"return iface %p
\n
"
,
result
);
return
result
;
}
dlls/mscoree/mscoree_main.c
View file @
601b240f
...
...
@@ -628,16 +628,24 @@ HRESULT WINAPI LoadStringRC(UINT resId, LPWSTR pBuffer, int iBufLen, int bQuiet)
HRESULT
WINAPI
CorBindToRuntimeEx
(
LPWSTR
szVersion
,
LPWSTR
szBuildFlavor
,
DWORD
nflags
,
REFCLSID
rslsid
,
REFIID
riid
,
LPVOID
*
ppv
)
{
FIXME
(
"%s %s %d %s %s %p
\n
"
,
debugstr_w
(
szVersion
),
debugstr_w
(
szBuildFlavor
),
nflags
,
debugstr_guid
(
rslsid
),
HRESULT
ret
;
ICLRRuntimeInfo
*
info
;
TRACE
(
"%s %s %d %s %s %p
\n
"
,
debugstr_w
(
szVersion
),
debugstr_w
(
szBuildFlavor
),
nflags
,
debugstr_guid
(
rslsid
),
debugstr_guid
(
riid
),
ppv
);
if
(
IsEqualGUID
(
riid
,
&
IID_ICorRuntimeHost
))
*
ppv
=
NULL
;
ret
=
get_runtime_info
(
NULL
,
szVersion
,
NULL
,
nflags
,
0
,
TRUE
,
&
info
);
if
(
SUCCEEDED
(
ret
))
{
*
ppv
=
create_corruntimehost
();
return
S_OK
;
ret
=
ICLRRuntimeInfo_GetInterface
(
info
,
rslsid
,
riid
,
ppv
);
ICLRRuntimeInfo_Release
(
info
);
}
*
ppv
=
NULL
;
return
E_NOTIMPL
;
return
ret
;
}
HRESULT
WINAPI
CorBindToCurrentRuntime
(
LPCWSTR
filename
,
REFCLSID
rclsid
,
REFIID
riid
,
LPVOID
*
ppv
)
...
...
dlls/mscoree/mscoree_private.h
View file @
601b240f
...
...
@@ -20,8 +20,6 @@
#ifndef __MSCOREE_PRIVATE__
#define __MSCOREE_PRIVATE__
extern
IUnknown
*
create_corruntimehost
(
void
);
extern
HRESULT
CLRMetaHost_CreateInstance
(
REFIID
riid
,
void
**
ppobj
);
typedef
struct
tagASSEMBLY
ASSEMBLY
;
...
...
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