mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-08 12:50:42 +00:00
Change to correct throw statement to preserve stack trace.
This commit is contained in:
parent
381c34da0b
commit
6dda84dc77
|
@ -211,7 +211,7 @@ namespace OpenTK
|
||||||
Marshal.WriteIntPtr(ptr, i * IntPtr.Size, str);
|
Marshal.WriteIntPtr(ptr, i * IntPtr.Size, str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (OutOfMemoryException oom)
|
catch (OutOfMemoryException)
|
||||||
{
|
{
|
||||||
for (i = i - 1; i >= 0; --i)
|
for (i = i - 1; i >= 0; --i)
|
||||||
{
|
{
|
||||||
|
@ -220,7 +220,7 @@ namespace OpenTK
|
||||||
|
|
||||||
Marshal.FreeHGlobal(ptr);
|
Marshal.FreeHGlobal(ptr);
|
||||||
|
|
||||||
throw oom;
|
throw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ptr;
|
return ptr;
|
||||||
|
|
Loading…
Reference in a new issue