Skip to content

Commit 607f1d1

Browse files
authored
Fix FSPXI_CreateFile and FSPXI_WriteFile (#496)
1 parent 10cf9bb commit 607f1d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libctru/source/services/fspxi.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ Result FSPXI_CreateFile(Handle serviceHandle, FSPXI_Archive archive, FS_Path pat
107107
cmdbuf[6] = attributes;
108108
cmdbuf[7] = (u32)fileSize;
109109
cmdbuf[8] = (u32)(fileSize >> 32);
110-
cmdbuf[8] = IPC_Desc_PXIBuffer(path.size, 0, true);
111-
cmdbuf[9] = (u32) path.data;
110+
cmdbuf[9] = IPC_Desc_PXIBuffer(path.size, 0, true);
111+
cmdbuf[10] = (u32) path.data;
112112

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

@@ -229,8 +229,8 @@ Result FSPXI_WriteFile(Handle serviceHandle, FSPXI_File file, u32* bytesWritten,
229229
cmdbuf[2] = (u32)(file >> 32);
230230
cmdbuf[3] = (u32) offset;
231231
cmdbuf[4] = (u32) (offset >> 32);
232-
cmdbuf[5] = flags;
233-
cmdbuf[6] = size;
232+
cmdbuf[5] = size;
233+
cmdbuf[6] = flags;
234234
cmdbuf[7] = IPC_Desc_PXIBuffer(size, 0, true);
235235
cmdbuf[8] = (u32) buffer;
236236

0 commit comments

Comments
 (0)