Skip to content

Commit eaba6c8

Browse files
committed
Fix wrong access in get declaring type
1 parent 05faf5e commit eaba6c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CLR/CorLib/corlib_native_System_Type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ HRESULT Library_corlib_native_System_Type::get_DeclaringType___SystemType(CLR_RT
2222
if (td.target->HasValidEnclosingType())
2323
{
2424
CLR_RT_HeapBlock *hbObj;
25-
td.Set(td.Assembly(), td.target->EnclosingType());
25+
td.Set(td.Assembly(), td.target->EnclosingTypeIndex());
2626

2727
NANOCLR_CHECK_HRESULT(g_CLR_RT_ExecutionEngine.NewObjectFromIndex(top, g_CLR_RT_WellKnownTypes.TypeStatic));
2828
hbObj = top.Dereference();

0 commit comments

Comments
 (0)