mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
os: fix AttachTransferMemory return type
This commit is contained in:
parent
24d6933145
commit
101e3087fe
2 changed files with 2 additions and 4 deletions
|
@ -24,7 +24,7 @@ namespace ams::os {
|
||||||
|
|
||||||
Result CreateTransferMemory(TransferMemoryType *tmem, void *address, size_t size, MemoryPermission perm);
|
Result CreateTransferMemory(TransferMemoryType *tmem, void *address, size_t size, MemoryPermission perm);
|
||||||
|
|
||||||
Result AttachTransferMemory(TransferMemoryType *tmem, size_t size, Handle handle, bool managed);
|
void AttachTransferMemory(TransferMemoryType *tmem, size_t size, Handle handle, bool managed);
|
||||||
Handle DetachTransferMemory(TransferMemoryType *tmem);
|
Handle DetachTransferMemory(TransferMemoryType *tmem);
|
||||||
|
|
||||||
void DestroyTransferMemory(TransferMemoryType *tmem);
|
void DestroyTransferMemory(TransferMemoryType *tmem);
|
||||||
|
|
|
@ -68,15 +68,13 @@ namespace ams::os {
|
||||||
return ResultSuccess();
|
return ResultSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
Result AttachTransferMemory(TransferMemoryType *tmem, size_t size, Handle handle, bool managed) {
|
void AttachTransferMemory(TransferMemoryType *tmem, size_t size, Handle handle, bool managed) {
|
||||||
AMS_ASSERT(size > 0);
|
AMS_ASSERT(size > 0);
|
||||||
AMS_ASSERT(util::IsAligned(size, os::MemoryPageSize));
|
AMS_ASSERT(util::IsAligned(size, os::MemoryPageSize));
|
||||||
AMS_ASSERT(handle != svc::InvalidHandle);
|
AMS_ASSERT(handle != svc::InvalidHandle);
|
||||||
|
|
||||||
/* Setup the object. */
|
/* Setup the object. */
|
||||||
SetupTransferMemoryType(tmem, size, handle, managed);
|
SetupTransferMemoryType(tmem, size, handle, managed);
|
||||||
|
|
||||||
return ResultSuccess();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Handle DetachTransferMemory(TransferMemoryType *tmem) {
|
Handle DetachTransferMemory(TransferMemoryType *tmem) {
|
||||||
|
|
Loading…
Reference in a new issue