Update IStorage.cs

Lock the stream fix a multithreading error when a XCI game try to access to the RomFs.
This commit is contained in:
Ac_K 2018-09-12 16:46:23 +02:00 committed by GitHub
commit c77259126b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,8 +39,11 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv
byte[] Data = new byte[Size];
lock (BaseStream)
{
BaseStream.Seek(Offset, SeekOrigin.Begin);
BaseStream.Read(Data, 0, Data.Length);
}
Context.Memory.WriteBytes(BuffDesc.Position, Data);
}