0
0
Fork 0

Fix inverted read only flag in transfer memory creation (#1945)

This commit is contained in:
Caian Benedicto 2021-01-22 23:48:03 -03:00 committed by GitHub
parent c72f78b4d4
commit 3b20080637
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.Sys
// CreateTransferMemoryStorage(b8, u64, handle<copy>) -> object<nn::am::service::IStorage> // CreateTransferMemoryStorage(b8, u64, handle<copy>) -> object<nn::am::service::IStorage>
public ResultCode CreateTransferMemoryStorage(ServiceCtx context) public ResultCode CreateTransferMemoryStorage(ServiceCtx context)
{ {
bool isReadOnly = (context.RequestData.ReadInt64() & 1) != 0; bool isReadOnly = (context.RequestData.ReadInt64() & 1) == 0;
long size = context.RequestData.ReadInt64(); long size = context.RequestData.ReadInt64();
int handle = context.Request.HandleDesc.ToCopy[0]; int handle = context.Request.HandleDesc.ToCopy[0];