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:
0a4675b
)
Fix for issue #5467: [R2R] InvalidCastException in timer tests. (#5478)
author
Fadi Hanna
<fadim@microsoft.com>
Fri, 3 Jun 2016 23:30:37 +0000
(16:30 -0700)
committer
Fadi Hanna
<fadim@microsoft.com>
Fri, 3 Jun 2016 23:30:37 +0000
(16:30 -0700)
We were not using the correct MethodTable pointer when constructing delegate objects to interface methods
src/vm/comdelegate.cpp
patch
|
blob
|
history
diff --git
a/src/vm/comdelegate.cpp
b/src/vm/comdelegate.cpp
index
b6cab68
..
071c65b
100644
(file)
--- a/
src/vm/comdelegate.cpp
+++ b/
src/vm/comdelegate.cpp
@@
-2112,8
+2112,8
@@
FCIMPL3(void, COMDelegate::DelegateConstruct, Object* refThisUNSAFE, Object* tar
{
pMeth = MethodDesc::FindOrCreateAssociatedMethodDesc(
pDispatchSlotMD,
- p
DispatchSlotMD->GetMethodTable()
,
- (!pDispatchSlotMD->IsStatic() && p
DispatchSlotMD->GetMethodTable()
->IsValueType()),
+ p
MTTarg
,
+ (!pDispatchSlotMD->IsStatic() && p
MTTarg
->IsValueType()),
pMeth->GetMethodInstantiation(),
FALSE /* allowInstParam */);
}