projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acf3160
)
Add IID_ICLRRuntimeHost QueryInterface support
author
Steve MacLean
<Steve.MacLean@microsoft.com>
Sat, 13 Oct 2018 02:30:55 +0000
(22:30 -0400)
committer
Steve MacLean
<stmaclea@microsoft.com>
Thu, 25 Oct 2018 17:21:48 +0000
(13:21 -0400)
src/vm/corhost.cpp
patch
|
blob
|
history
diff --git
a/src/vm/corhost.cpp
b/src/vm/corhost.cpp
index
463f6f6
..
b58d75d
100644
(file)
--- a/
src/vm/corhost.cpp
+++ b/
src/vm/corhost.cpp
@@
-1347,7
+1347,13
@@
HRESULT CorHost2::QueryInterface(REFIID riid, void **ppUnk)
// Deliberately do NOT hand out ICorConfiguration. They must explicitly call
// GetConfiguration to obtain that interface.
if (riid == IID_IUnknown)
+ {
*ppUnk = static_cast<IUnknown *>(static_cast<ICLRRuntimeHost *>(this));
+ }
+ else if (riid == IID_ICLRRuntimeHost)
+ {
+ *ppUnk = static_cast<ICLRRuntimeHost *>(this);
+ }
else if (riid == IID_ICLRRuntimeHost2)
{
ULONG version = 2;