mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-04-20 21:52:54 +00:00
misc: memory: Migrate from OutOfMemoryException to SystemException entirely (#5399)
Fix a regression with address space allocation while providing more information about the context of the exception.
This commit is contained in:
@@ -114,7 +114,7 @@ namespace Ryujinx.Memory
|
||||
|
||||
if (handle == IntPtr.Zero)
|
||||
{
|
||||
throw new OutOfMemoryException();
|
||||
throw new SystemException(Marshal.GetLastPInvokeErrorMessage());
|
||||
}
|
||||
|
||||
return handle;
|
||||
@@ -134,7 +134,7 @@ namespace Ryujinx.Memory
|
||||
|
||||
if (ptr == IntPtr.Zero)
|
||||
{
|
||||
throw new OutOfMemoryException();
|
||||
throw new SystemException(Marshal.GetLastPInvokeErrorMessage());
|
||||
}
|
||||
|
||||
return ptr;
|
||||
|
||||
Reference in New Issue
Block a user