Fix the mobile build.
authorZoltan Varga <vargaz@gmail.com>
Wed, 12 Nov 2014 01:11:39 +0000 (20:11 -0500)
committerZoltan Varga <vargaz@gmail.com>
Wed, 12 Nov 2014 01:11:45 +0000 (20:11 -0500)
mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs

index 48c5db2ea62adb508e662063fc3fca9e4ad276a6..e861f50df632e239d7dadb3a7106d6356d66f38e 100644 (file)
@@ -1585,6 +1585,7 @@ namespace System.Runtime.InteropServices
 
                public static Exception GetExceptionForHR (int errorCode, IntPtr errorInfo)
                {
+#if !MOBILE
                        IErrorInfo info = null;
                        if (errorInfo != (IntPtr)(-1)) {
                                if (errorInfo == IntPtr.Zero) {
@@ -1618,6 +1619,9 @@ namespace System.Runtime.InteropServices
                                }
                        }
                        return e;
+#else
+                       return ConvertHrToException (errorCode);
+#endif
                }
 
 #if !FULL_AOT_RUNTIME