From 5cea50c794753b65a25c17b9b88a84eb7e432ba5 Mon Sep 17 00:00:00 2001 From: Avi Avni Date: Tue, 11 Jun 2019 03:22:34 +0300 Subject: fix generic attribute bug when generic attribute has parameters and the parameters (#25054) * fix generic attribute bug * add missing test cases --- src/vm/customattribute.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vm/customattribute.cpp') 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) { -- cgit v1.2.3