Skip to content

Commit

Permalink
Merge pull request #531 from Y4er/master
Browse files Browse the repository at this point in the history
Update Example6.cs for resolve System.InvalidOperationException
  • Loading branch information
wtfsck authored Oct 27, 2023
2 parents 185557c + 0105e6b commit 67396c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Examples/Example6.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void OnWriterEvent(object sender, ModuleWriterEventArgs e) {
case ModuleWriterEvent.PESectionsCreated:
// Add a PE section
var sect1 = new PESection(".dummy", 0x40000040);
e.Writer.Sections.Add(sect1);
e.Writer.AddSection(sect1);
// Let's add data
sect1.Add(new ByteArrayChunk(new byte[123]), 4);
sect1.Add(new ByteArrayChunk(new byte[10]), 4);
Expand Down

0 comments on commit 67396c0

Please sign in to comment.