| ... | @@ -831,7 +831,7 @@ pub const Coff = struct { | ... | @@ -831,7 +831,7 @@ pub const Coff = struct { |
| 831 | var stream = std.io.fixedBufferStream(self.data); | 831 | var stream = std.io.fixedBufferStream(self.data); |
| 832 | const reader = stream.reader(); | 832 | const reader = stream.reader(); |
| 833 | try stream.seekTo(pe_pointer_offset); | 833 | try stream.seekTo(pe_pointer_offset); |
| 834 | const coff_header_offset = try reader.readByte(); | 834 | const coff_header_offset = try reader.readIntLittle(u32); |
| 835 | try stream.seekTo(coff_header_offset); | 835 | try stream.seekTo(coff_header_offset); |
| 836 | var buf: [4]u8 = undefined; | 836 | var buf: [4]u8 = undefined; |
| 837 | try reader.readNoEof(&buf); | 837 | try reader.readNoEof(&buf); |