[runtime] Make RuntimeWrappedExceptions work with the new reference source version...
[mono.git] / mono / metadata / exception.c
index cf42445fa784a86ebe6724fb74ab7a0e5c677a6e..6dedba6daaa391d92a8e04de9766cca36f6d59b0 100644 (file)
@@ -779,7 +779,7 @@ mono_get_exception_runtime_wrapped (MonoObject *wrapped_exception)
                mono_exception_from_name (mono_get_corlib (), "System.Runtime.CompilerServices",
                                                                  "RuntimeWrappedException");
 
-   MONO_OBJECT_SETREF (ex, wrapped_exception, wrapped_exception);
+   MONO_OBJECT_SETREF (ex, m_wrappedException, wrapped_exception);
    return (MonoException*)ex;
 }