[custom_attrs] Don't return NULL if a single custom attr is missing.
[mono.git] / mono / io-layer / messages.c
index 80a5209f4588367cf9aeb2a48a862137af36c63e..9c5bd31e06a5307d2e910290ea58cdf3a8f5f296 100644 (file)
@@ -1830,7 +1830,7 @@ find_msg (guint32 id, ErrorDesc *base, int n)
        ErrorDesc d, *result;
        d.id = id;
        
-       result = mono_binary_search (&d, base, n, sizeof (ErrorDesc), msg_compare);
+       result = (ErrorDesc *)mono_binary_search (&d, base, n, sizeof (ErrorDesc), msg_compare);
        if (result == NULL)
                return NULL;
        return result->txt;