Change Unknown0x56's out to array with static size

This commit is contained in:
piepie62 2020-05-04 21:00:55 -04:00
parent b918abab12
commit 4bdcb8209a
2 changed files with 6 additions and 6 deletions

View File

@ -597,7 +597,7 @@ Result FSPXI_ReadNandReport(Handle serviceHandle, void* buffer, u32 size, u32 un
* @brief Unknown command 0x56
* @remark Called by FSUSER_ControlArchive with ArchiveAction 0x789D
*/
Result FSPXI_Unknown0x56(Handle serviceHandle, u32 (*out)[4], FS_Archive archive, FS_Path path);
Result FSPXI_Unknown0x56(Handle serviceHandle, u32 out[static 4], FS_Archive archive, FS_Path path);
#undef DEFINE_PXIFS_SERVICE_METHOD
#undef DEFINE_SERVICE_METHOD

View File

@ -1362,7 +1362,7 @@ Result FSPXI_ReadNandReport(Handle serviceHandle, void* buffer, u32 size, u32 un
return (Result) cmdbuf[1];
}
Result FSPXI_Unknown0x56(Handle serviceHandle, u32 (*out)[4], FS_Archive archive, FS_Path path)
Result FSPXI_Unknown0x56(Handle serviceHandle, u32 out[static 4], FS_Archive archive, FS_Path path)
{
Result ret = 0;
u32 *cmdbuf = getThreadCommandBuffer();
@ -1377,10 +1377,10 @@ Result FSPXI_Unknown0x56(Handle serviceHandle, u32 (*out)[4], FS_Archive archive
if (R_FAILED(ret = svcSendSyncRequest(serviceHandle))) return ret;
(*out)[0] = cmdbuf[2];
(*out)[1] = cmdbuf[3];
(*out)[2] = cmdbuf[4];
(*out)[3] = cmdbuf[5];
out[0] = cmdbuf[2];
out[1] = cmdbuf[3];
out[2] = cmdbuf[4];
out[3] = cmdbuf[5];
return (Result) cmdbuf[1];
}