From: Aleksey Kliger (λgeek) Date: Fri, 7 Oct 2016 17:13:44 +0000 (-0400) Subject: Merge pull request #3731 from lambdageek/dev-handles-gbmc X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=e1b0a371355b28b1501f6d6ed0d9c26a018ef9f9;hp=906bad4382d1c4ae83da99c8e42c2eef8f6be072;p=mono.git Merge pull request #3731 from lambdageek/dev-handles-gbmc [runtime] System.Configuration.InternalConfigurationHost:get_bundled_machine_config needs HANDLES --- diff --git a/mono/metadata/icall-def.h b/mono/metadata/icall-def.h index 703ad861363..88ba5f36f6c 100644 --- a/mono/metadata/icall-def.h +++ b/mono/metadata/icall-def.h @@ -412,13 +412,13 @@ ICALL_TYPE (COMPO_W, "System.ComponentModel.Win32Exception", COMPO_W_1) ICALL (COMPO_W_1, "W32ErrorMessage", ves_icall_System_ComponentModel_Win32Exception_W32ErrorMessage) ICALL_TYPE(DEFAULTC, "System.Configuration.DefaultConfig", DEFAULTC_1) -HANDLES(ICALL(DEFAULTC_1, "get_bundled_machine_config", get_bundled_machine_config)) +HANDLES(ICALL(DEFAULTC_1, "get_bundled_machine_config", ves_icall_System_Configuration_DefaultConfig_get_bundled_machine_config)) ICALL(DEFAULTC_2, "get_machine_config_path", ves_icall_System_Configuration_DefaultConfig_get_machine_config_path) /* Note that the below icall shares the same function as DefaultConfig uses */ ICALL_TYPE(INTCFGHOST, "System.Configuration.InternalConfigurationHost", INTCFGHOST_1) ICALL(INTCFGHOST_1, "get_bundled_app_config", get_bundled_app_config) -ICALL(INTCFGHOST_2, "get_bundled_machine_config", get_bundled_machine_config) +HANDLES(ICALL(INTCFGHOST_2, "get_bundled_machine_config", ves_icall_System_Configuration_InternalConfigurationHost_get_bundled_machine_config)) ICALL_TYPE(CONSOLE, "System.ConsoleDriver", CONSOLE_1) ICALL(CONSOLE_1, "InternalKeyAvailable", ves_icall_System_ConsoleDriver_InternalKeyAvailable ) diff --git a/mono/metadata/icall.c b/mono/metadata/icall.c index d4622567695..777bd41fef5 100644 --- a/mono/metadata/icall.c +++ b/mono/metadata/icall.c @@ -7257,7 +7257,6 @@ get_bundled_app_config (void) return mono_string_new (mono_domain_get (), app_config); } -/* this is an icall */ static MonoStringHandle get_bundled_machine_config (MonoError *error) { @@ -7271,6 +7270,19 @@ get_bundled_machine_config (MonoError *error) return mono_string_new_handle (mono_domain_get (), machine_config, error); } +static MonoStringHandle +ves_icall_System_Configuration_DefaultConfig_get_bundled_machine_config (MonoError *error) +{ + return get_bundled_machine_config (error); +} + +static MonoStringHandle +ves_icall_System_Configuration_InternalConfigurationHost_get_bundled_machine_config (MonoError *error) +{ + return get_bundled_machine_config (error); +} + + ICALL_EXPORT MonoString * ves_icall_System_Web_Util_ICalls_get_machine_install_dir (void) {