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
73ca9d2d
Commit
73ca9d2d
authored
Oct 02, 2013
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Oct 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree: Partially implement ICLRMetaHost RequestRuntimeLoadedNotification.
parent
4ce0f742
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
2 deletions
+29
-2
metahost.c
dlls/mscoree/metahost.c
+11
-2
metahost.c
dlls/mscoree/tests/metahost.c
+18
-0
No files found.
dlls/mscoree/metahost.c
View file @
73ca9d2d
...
@@ -986,6 +986,8 @@ static const struct IEnumUnknownVtbl InstalledRuntimeEnum_Vtbl = {
...
@@ -986,6 +986,8 @@ static const struct IEnumUnknownVtbl InstalledRuntimeEnum_Vtbl = {
struct
CLRMetaHost
struct
CLRMetaHost
{
{
ICLRMetaHost
ICLRMetaHost_iface
;
ICLRMetaHost
ICLRMetaHost_iface
;
RuntimeLoadedCallbackFnPtr
callback
;
};
};
static
struct
CLRMetaHost
GlobalCLRMetaHost
;
static
struct
CLRMetaHost
GlobalCLRMetaHost
;
...
@@ -1168,9 +1170,16 @@ static HRESULT WINAPI CLRMetaHost_EnumerateLoadedRuntimes(ICLRMetaHost* iface,
...
@@ -1168,9 +1170,16 @@ static HRESULT WINAPI CLRMetaHost_EnumerateLoadedRuntimes(ICLRMetaHost* iface,
static
HRESULT
WINAPI
CLRMetaHost_RequestRuntimeLoadedNotification
(
ICLRMetaHost
*
iface
,
static
HRESULT
WINAPI
CLRMetaHost_RequestRuntimeLoadedNotification
(
ICLRMetaHost
*
iface
,
RuntimeLoadedCallbackFnPtr
pCallbackFunction
)
RuntimeLoadedCallbackFnPtr
pCallbackFunction
)
{
{
FIXM
E
(
"%p
\n
"
,
pCallbackFunction
);
TRAC
E
(
"%p
\n
"
,
pCallbackFunction
);
return
E_NOTIMPL
;
if
(
!
pCallbackFunction
)
return
E_POINTER
;
WARN
(
"Callback currently will not be called.
\n
"
);
GlobalCLRMetaHost
.
callback
=
pCallbackFunction
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
CLRMetaHost_QueryLegacyV2RuntimeBinding
(
ICLRMetaHost
*
iface
,
static
HRESULT
WINAPI
CLRMetaHost_QueryLegacyV2RuntimeBinding
(
ICLRMetaHost
*
iface
,
...
...
dlls/mscoree/tests/metahost.c
View file @
73ca9d2d
...
@@ -142,6 +142,23 @@ static void test_getruntime(void)
...
@@ -142,6 +142,23 @@ static void test_getruntime(void)
ok
(
hr
==
CLR_E_SHIM_RUNTIME
,
"GetVersion failed, hr=%x
\n
"
,
hr
);
ok
(
hr
==
CLR_E_SHIM_RUNTIME
,
"GetVersion failed, hr=%x
\n
"
,
hr
);
}
}
static
void
WINAPI
notification_callback
(
ICLRRuntimeInfo
*
pRuntimeInfo
,
CallbackThreadSetFnPtr
pfnCallbackThreadSet
,
CallbackThreadUnsetFnPtr
pfnCallbackThreadUnset
)
{
ok
(
0
,
"Unexpected call
\n
"
);
}
static
void
test_notification
(
void
)
{
HRESULT
hr
;
hr
=
ICLRMetaHost_RequestRuntimeLoadedNotification
(
metahost
,
NULL
);
ok
(
hr
==
E_POINTER
,
"GetVersion failed, hr=%x
\n
"
,
hr
);
hr
=
ICLRMetaHost_RequestRuntimeLoadedNotification
(
metahost
,
notification_callback
);
ok
(
hr
==
S_OK
,
"GetVersion failed, hr=%x
\n
"
,
hr
);
}
START_TEST
(
metahost
)
START_TEST
(
metahost
)
{
{
if
(
!
init_pointers
())
if
(
!
init_pointers
())
...
@@ -150,6 +167,7 @@ START_TEST(metahost)
...
@@ -150,6 +167,7 @@ START_TEST(metahost)
test_enumruntimes
();
test_enumruntimes
();
test_getruntime
();
test_getruntime
();
test_notification
();
cleanup
();
cleanup
();
}
}
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