From a0f56b545921a4b576e5d22cd85b347f5368ab33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 18 Mar 2021 17:58:21 +0100 Subject: [PATCH] Mono: Fix Android build after #46900 (cherry picked from commit 2274d4eebc5b0af3c59a9b0ea7877d9fd729dfc4) --- modules/mono/mono_gd/support/android_support.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mono/mono_gd/support/android_support.cpp b/modules/mono/mono_gd/support/android_support.cpp index 43885cd859e..a57447b6573 100755 --- a/modules/mono/mono_gd/support/android_support.cpp +++ b/modules/mono/mono_gd/support/android_support.cpp @@ -637,7 +637,7 @@ GD_PINVOKE_EXPORT int32_t _monodroid_get_dns_servers(void **r_dns_servers_array) if (dns_servers_count > 0) { size_t ret_size = sizeof(char *) * (size_t)dns_servers_count; *r_dns_servers_array = malloc(ret_size); // freed by the BCL - ERR_FAIL_NULL_MSG(*r_dns_servers_array, "Out of memory."); + ERR_FAIL_NULL_V_MSG(*r_dns_servers_array, -1, "Out of memory."); memcpy(*r_dns_servers_array, dns_servers, ret_size); }