[runtime] Call error_init instead of mono_error_init (#4425)
[mono.git] / mono / metadata / w32file.c
index d1511ac15a11c576a3552efc7c76ed642799cded..5086bc442ef339c8a0fd77e530d81fe173e86199 100644 (file)
@@ -596,7 +596,7 @@ ves_icall_System_IO_MonoIO_GetCurrentDirectory (gint32 *io_error)
        len = MAX_PATH + 1; /*FIXME this is too smal under most unix systems.*/
        buf = g_new (gunichar2, len);
        
-       mono_error_init (&error);
+       error_init (&error);
        *io_error=ERROR_SUCCESS;
        result = NULL;