X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fstring-icalls.c;h=e6cbc3dbfead9b35f8be5412e58b529d09bdeaa5;hb=30cddad5fb4c3d290906a6e6c33ecd8b07d8b48c;hp=1594cc52bfcdaceb0c82b6660eac85296430446a;hpb=797c536463feb7ebf7b3aafdee518404389b726e;p=mono.git diff --git a/mono/metadata/string-icalls.c b/mono/metadata/string-icalls.c index 1594cc52bfc..e6cbc3dbfea 100644 --- a/mono/metadata/string-icalls.c +++ b/mono/metadata/string-icalls.c @@ -1,5 +1,6 @@ -/* - * string-icalls.c: String internal calls for the corlib +/** + * \file + * String internal calls for the corlib * * Author: * Patrik Torstensson (patrik.torstensson@labs2.com) @@ -7,6 +8,7 @@ * * Copyright 2001-2003 Ximian, Inc (http://www.ximian.com) * Copyright 2004-2009 Novell, Inc (http://www.novell.com) + * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #include #include @@ -21,8 +23,6 @@ #include #include #include -#include -#include #include /* This function is redirected to String.CreateString () @@ -38,7 +38,7 @@ ves_icall_System_String_InternalAllocateStr (gint32 length) { MonoError error; MonoString *str = mono_string_new_size_checked (mono_domain_get (), length, &error); - mono_error_raise_exception (&error); + mono_error_set_pending_exception (&error); return str; }