Skip to content

Commit

Permalink
BUGFIX: Pass module reader parameters from FromBytes to FromImage pro…
Browse files Browse the repository at this point in the history
…perly.
  • Loading branch information
Washi1337 committed Jun 5, 2023
1 parent ed66df6 commit bbf5781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AsmResolver.DotNet/ModuleDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static ModuleDefinition FromBytes(byte[] buffer) =>
/// <returns>The module.</returns>
/// <exception cref="BadImageFormatException">Occurs when the image does not contain a valid .NET metadata directory.</exception>
public static ModuleDefinition FromBytes(byte[] buffer, ModuleReaderParameters readerParameters) =>
FromImage(PEImage.FromBytes(buffer, readerParameters.PEReaderParameters));
FromImage(PEImage.FromBytes(buffer, readerParameters.PEReaderParameters), readerParameters);

/// <summary>
/// Reads a .NET module from the provided input file.
Expand Down

0 comments on commit bbf5781

Please sign in to comment.