svn path=/trunk/mono/; revision=35782
{
MONO_ARCH_SAVE_REGS;
- if (ptr == NULL)
+ if (ptr == NULL) {
mono_raise_exception (mono_get_exception_argument_null ("ptr"));
- else
+ g_assert_not_reached ();
+ return NULL;
+ } else
return mono_string_new_len (mono_domain_get (), ptr, len);
}
MONO_ARCH_SAVE_REGS;
- if (ptr == NULL)
+ if (ptr == NULL) {
mono_raise_exception (mono_get_exception_argument_null ("ptr"));
- else
+ g_assert_not_reached ();
+ return NULL;
+ } else
return mono_string_new_utf16 (domain, ptr, len);
}