提交 522c8b69 编写于 作者: Z Zoltan Varga 提交者: GitHub

[runtime] Add a few missing error_init () calls to the...

[runtime] Add a few missing error_init () calls to the mono_custom_attrs_from_... functions. Fixes #57488. (#5076)
上级 f8a1ab5d
......@@ -1297,6 +1297,8 @@ static MonoCustomAttrInfo*
mono_custom_attrs_from_module (MonoImage *image, MonoError *error)
{
guint32 idx;
error_init (error);
if (image_is_dynamic (image))
return lookup_custom_attr (image, image);
......@@ -1322,6 +1324,8 @@ MonoCustomAttrInfo*
mono_custom_attrs_from_property_checked (MonoClass *klass, MonoProperty *property, MonoError *error)
{
guint32 idx;
error_init (error);
if (image_is_dynamic (klass->image)) {
property = mono_metadata_get_corresponding_property_from_generic_type_definition (property);
......@@ -1349,6 +1353,8 @@ MonoCustomAttrInfo*
mono_custom_attrs_from_event_checked (MonoClass *klass, MonoEvent *event, MonoError *error)
{
guint32 idx;
error_init (error);
if (image_is_dynamic (klass->image)) {
event = mono_metadata_get_corresponding_event_from_generic_type_definition (event);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册