fs: revise allocation-fail result names
This commit is contained in:
@@ -139,7 +139,7 @@ namespace ams::fssystem {
|
||||
} else {
|
||||
m_internal_free_lists.reset(new PageList[m_order_max + 1]);
|
||||
m_free_lists = m_internal_free_lists.get();
|
||||
R_UNLESS(m_free_lists != nullptr, fs::ResultAllocationFailureInFileSystemBuddyHeapA());
|
||||
R_UNLESS(m_free_lists != nullptr, fs::ResultAllocationMemoryFailedInFileSystemBuddyHeapA());
|
||||
}
|
||||
|
||||
/* All but the last page region should go to the max order. */
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace ams::fssystem {
|
||||
}
|
||||
|
||||
/* We need to have at least one entry buffer. */
|
||||
R_UNLESS(m_internal_entry_buffer != nullptr || m_external_entry_buffer != nullptr, fs::ResultAllocationFailureInFileSystemBufferManagerA());
|
||||
R_UNLESS(m_internal_entry_buffer != nullptr || m_external_entry_buffer != nullptr, fs::ResultAllocationMemoryFailedInFileSystemBufferManagerA());
|
||||
|
||||
/* Set entries. */
|
||||
m_entries = reinterpret_cast<Entry *>(m_external_entry_buffer != nullptr ? m_external_entry_buffer : m_internal_entry_buffer.get());
|
||||
|
||||
Reference in New Issue
Block a user