Merge pull request #2454 from tastywheattasteslikechicken/FixVtableAbort
[mono.git] / mono / metadata / coree.c
index 7c4be6afe7e53d6a0ad02785d62c337849036108..c2e47b9ca7b479a3a076a8db7c2f1694b2ac5212 100644 (file)
@@ -143,7 +143,7 @@ __int32 STDMETHODCALLTYPE _CorExeMain(void)
        MonoMethod* method;
        guint32 entry;
        gchar* file_name;
-       gchar* error;
+       gchar* corlib_version_error;
        int argc;
        gunichar2** argvw;
        gchar** argv;
@@ -153,9 +153,9 @@ __int32 STDMETHODCALLTYPE _CorExeMain(void)
        init_from_coree = TRUE;
        domain = mono_runtime_load (file_name, NULL);
 
-       error = (gchar*) mono_check_corlib_version ();
-       if (error) {
-               g_free (error);
+       corlib_version_error = (gchar*) mono_check_corlib_version ();
+       if (corlib_version_error) {
+               g_free (corlib_version_error);
                g_free (file_name);
                MessageBox (NULL, L"Corlib not in sync with this runtime.", NULL, MB_ICONERROR);
                mono_runtime_quit ();