Skip to content

Commit

Permalink
fix msvc build
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdageek committed Apr 30, 2024
1 parent c53773d commit ca36798
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mono/mono/metadata/marshal.c
Original file line number Diff line number Diff line change
Expand Up @@ -5286,11 +5286,11 @@ mono_marshal_get_unsafe_accessor_wrapper (MonoMethod *accessor_method, MonoUnsaf
container = mono_metadata_load_generic_params (m_class_get_image (accessor_method->klass), accessor_method->token, container, /*owner:*/mb->method);
mono_method_set_generic_container (mb->method, container);

MonoGenericContext ctx = {0,};
ctx.method_inst = container->context.method_inst;
MonoGenericContext inst_ctx = {0,};
inst_ctx.method_inst = container->context.method_inst;

ERROR_DECL (error);
sig = mono_inflate_generic_signature (mono_method_signature_internal (accessor_method), &ctx, error);
sig = mono_inflate_generic_signature (mono_method_signature_internal (accessor_method), &inst_ctx, error);
mono_error_assert_ok (error); // FIXME
} else {
sig = mono_metadata_signature_dup_full (get_method_image (accessor_method), mono_method_signature_internal (accessor_method));
Expand Down

0 comments on commit ca36798

Please sign in to comment.