mirror of
https://github.com/Perfare/Il2CppDumper.git
synced 2025-01-09 11:17:35 -03:00
fixed #471
This commit is contained in:
parent
43ff0f23c1
commit
9f03520f50
1 changed files with 1 additions and 2 deletions
|
@ -46,8 +46,7 @@ namespace Il2CppDumper
|
|||
|
||||
public WebAssemblyMemory CreateMemory()
|
||||
{
|
||||
var last = dataSections[dataSections.Length - 1];
|
||||
var stream = new MemoryStream((int)last.Offset + last.Data.Length);
|
||||
var stream = new MemoryStream(new byte[Length]);
|
||||
foreach (var dataSection in dataSections)
|
||||
{
|
||||
stream.Position = dataSection.Offset;
|
||||
|
|
Loading…
Reference in a new issue