Skip to content

Commit

Permalink
[netcore] Fix ArgumentException argument order.
Browse files Browse the repository at this point in the history
Commit migrated from mono/mono@de89d6d
  • Loading branch information
vargaz authored and marek-safar committed Mar 27, 2019
1 parent 548d597 commit 0ebf3f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono/mono/metadata/exception.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ mono_exception_new_argument_internal (const char *type, const char *arg, const c
MonoStringHandle arg_str = arg ? mono_string_new_handle (mono_domain_get (), arg, error) : NULL_HANDLE_STRING;
MonoStringHandle msg_str = msg ? mono_string_new_handle (mono_domain_get (), msg, error) : NULL_HANDLE_STRING;

return mono_exception_from_name_two_strings_checked (mono_get_corlib (), "System", type, arg_str, msg_str, error);
return mono_exception_from_name_two_strings_checked (mono_get_corlib (), "System", type, msg_str, arg_str, error);
#else
MonoExceptionHandle ex = mono_exception_new_by_name_msg (mono_get_corlib (), "System", type, msg, error);

Expand Down

0 comments on commit 0ebf3f1

Please sign in to comment.