Update IAccountServiceForApplication.cs
This commit is contained in:
parent
9f055b8e13
commit
944f1a42ec
1 changed files with 3 additions and 7 deletions
|
@ -63,6 +63,8 @@ namespace Ryujinx.HLE.HOS.Services.Account.Acc
|
|||
long outputPosition = context.Request.RecvListBuff[0].Position;
|
||||
long outputSize = context.Request.RecvListBuff[0].Size;
|
||||
|
||||
MemoryHelper.FillWithZeros(context.Memory, outputPosition, (int)outputSize);
|
||||
|
||||
ulong offset = 0UL;
|
||||
|
||||
foreach (UserProfile userProfile in profiles)
|
||||
|
@ -75,13 +77,7 @@ namespace Ryujinx.HLE.HOS.Services.Account.Acc
|
|||
context.Memory.WriteInt64(outputPosition + (long)offset, userProfile.UserId.Low);
|
||||
context.Memory.WriteInt64(outputPosition + (long)offset + 8L, userProfile.UserId.High);
|
||||
|
||||
offset += 0x10;
|
||||
}
|
||||
|
||||
for ( ; offset + 0x10UL <= (ulong)outputSize; offset += 0x10UL)
|
||||
{
|
||||
context.Memory.WriteInt64(outputPosition + (long)offset, 0L);
|
||||
context.Memory.WriteInt64(outputPosition + (long)offset + 8L, 0L);
|
||||
offset += 0x10UL;
|
||||
}
|
||||
|
||||
return ResultCode.Success;
|
||||
|
|
Loading…
Add table
Reference in a new issue