diff options
author | Steve MacLean <Steve.MacLean@microsoft.com> | 2018-10-12 22:30:55 -0400 |
---|---|---|
committer | Steve MacLean <stmaclea@microsoft.com> | 2018-10-25 13:21:48 -0400 |
commit | b8b61f54feffd4e445a14e3008b19b6890fc62be (patch) | |
tree | 37fc4fedec0c91521f601d0e51f579b423bd7473 /src | |
parent | acf316089c3e600987ae94fa1750a7dc3029a284 (diff) | |
download | coreclr-b8b61f54feffd4e445a14e3008b19b6890fc62be.tar.gz coreclr-b8b61f54feffd4e445a14e3008b19b6890fc62be.tar.bz2 coreclr-b8b61f54feffd4e445a14e3008b19b6890fc62be.zip |
Add IID_ICLRRuntimeHost QueryInterface support
Diffstat (limited to 'src')
-rw-r--r-- | src/vm/corhost.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vm/corhost.cpp b/src/vm/corhost.cpp index 463f6f68fd..b58d75d676 100644 --- 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; |