diff options
author | Avi Avni <avi.avni@gmail.com> | 2019-06-11 03:22:34 +0300 |
---|---|---|
committer | David Wrighton <davidwr@microsoft.com> | 2019-06-10 17:22:34 -0700 |
commit | 5cea50c794753b65a25c17b9b88a84eb7e432ba5 (patch) | |
tree | caa15e3e3d66f325b9502fe0ba3d7e799f6308ac /src/vm/customattribute.cpp | |
parent | a7b7af37dd9e56f94016aed9d9eaf5f857a6d722 (diff) | |
download | coreclr-5cea50c794753b65a25c17b9b88a84eb7e432ba5.tar.gz coreclr-5cea50c794753b65a25c17b9b88a84eb7e432ba5.tar.bz2 coreclr-5cea50c794753b65a25c17b9b88a84eb7e432ba5.zip |
fix generic attribute bug when generic attribute has parameters and the parameters (#25054)
* fix generic attribute bug
* add missing test cases
Diffstat (limited to 'src/vm/customattribute.cpp')
-rw-r--r-- | src/vm/customattribute.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/customattribute.cpp b/src/vm/customattribute.cpp index 6edda673ea..2c99785eab 100644 --- a/src/vm/customattribute.cpp +++ b/src/vm/customattribute.cpp @@ -768,7 +768,7 @@ FCIMPL6(LPVOID, COMCustomAttribute::CreateCaObject, ReflectModuleBaseObject* pAt memset((void*)argToProtect, 0, cArgs * sizeof(OBJECTREF)); // load the this pointer - argToProtect[0] = pCtorMD->GetMethodTable()->Allocate(); // this is the value to return after the ctor invocation + argToProtect[0] = gc.refCaType->GetType().GetMethodTable()->Allocate(); // this is the value to return after the ctor invocation if (pBlob) { |