Skip to content

Commit

Permalink
fixed #471
Browse files Browse the repository at this point in the history
  • Loading branch information
Perfare committed Dec 18, 2021
1 parent 43ff0f2 commit 9f03520
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Il2CppDumper/ExecutableFormats/WebAssembly.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ public WebAssembly(Stream stream) : base(stream)

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;
Expand Down

0 comments on commit 9f03520

Please sign in to comment.