summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2016-02-01 01:59:42 -0800
committerJan Kotas <jkotas@microsoft.com>2016-02-01 01:59:42 -0800
commite3d17312531d35e52cef1158932be6717029b161 (patch)
tree4dd656b39a3d400275c5eb89efcb148f7f4011e3
parent65db9dd0cf7858b7bae762d1d62177d7412ba395 (diff)
parentb31d305aaf07630f5f81ebaa6237c5c09edaf20a (diff)
downloadcoreclr-e3d17312531d35e52cef1158932be6717029b161.tar.gz
coreclr-e3d17312531d35e52cef1158932be6717029b161.tar.bz2
coreclr-e3d17312531d35e52cef1158932be6717029b161.zip
Merge pull request #2949 from Dmitry-Me/castToMostDerivedInterface
Fix cast to interface other than the most derived one
-rw-r--r--src/inc/testhook.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inc/testhook.h b/src/inc/testhook.h
index a255b6f308..ba2435d3e7 100644
--- a/src/inc/testhook.h
+++ b/src/inc/testhook.h
@@ -143,7 +143,7 @@ public:
|| IsEqualIID(riid, IID_ICLRTestHook3))
{
AddRef();
- *ppv = (ICLRTestHook*) (this);
+ *ppv = static_cast<ICLRTestHook3*>(this);
return S_OK;
}
else