Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions libctru/source/services/fspxi.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ Result FSPXI_CreateFile(Handle serviceHandle, FSPXI_Archive archive, FS_Path pat
cmdbuf[6] = attributes;
cmdbuf[7] = (u32)fileSize;
cmdbuf[8] = (u32)(fileSize >> 32);
cmdbuf[8] = IPC_Desc_PXIBuffer(path.size, 0, true);
cmdbuf[9] = (u32) path.data;
cmdbuf[9] = IPC_Desc_PXIBuffer(path.size, 0, true);
cmdbuf[10] = (u32) path.data;

if(R_FAILED(ret = svcSendSyncRequest(serviceHandle))) return ret;

Expand Down Expand Up @@ -229,8 +229,8 @@ Result FSPXI_WriteFile(Handle serviceHandle, FSPXI_File file, u32* bytesWritten,
cmdbuf[2] = (u32)(file >> 32);
cmdbuf[3] = (u32) offset;
cmdbuf[4] = (u32) (offset >> 32);
cmdbuf[5] = flags;
cmdbuf[6] = size;
cmdbuf[5] = size;
cmdbuf[6] = flags;
cmdbuf[7] = IPC_Desc_PXIBuffer(size, 0, true);
cmdbuf[8] = (u32) buffer;

Expand Down