Skip to content

Commit 577be8f

Browse files
committed
Definitive fix for BuildMethodName for non generic types
***NO_CI***
1 parent e3dea56 commit 577be8f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/CLR/Core/TypeSystem.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7812,6 +7812,9 @@ HRESULT CLR_RT_TypeSystem::BuildMethodName(
78127812
}
78137813

78147814
NANOCLR_CHECK_HRESULT(BuildTypeName(instOwner, szBuffer, iBuffer));
7815+
7816+
CLR_SafeSprintf(szBuffer, iBuffer, "::%s", mdInst.assembly->GetString(mdInst.target->name));
7817+
78157818
}
78167819
else
78177820
{
@@ -7940,8 +7943,6 @@ HRESULT CLR_RT_TypeSystem::BuildMethodName(
79407943
}
79417944
}
79427945

7943-
CLR_SafeSprintf(szBuffer, iBuffer, "::%s", mdInst.assembly->GetString(mdInst.target->name));
7944-
79457946
NANOCLR_NOCLEANUP();
79467947
}
79477948

0 commit comments

Comments
 (0)