Merge pull request #38 from joevt/master

pcidevice: fix struct offset in the expansion ROM header.
This commit is contained in:
Maxim Poliakovski 2022-10-23 21:25:08 +02:00 committed by GitHub
commit de082626ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -190,7 +190,7 @@ int PCIDevice::attach_exp_rom_image(const std::string img_path)
uint32_t exp_rom_image_size = img_file.tellg();
// verify PCI struct offset
uint32_t pci_struct_offset = 0;
uint16_t pci_struct_offset = 0;
img_file.seekg(0x18, std::ios::beg);
img_file.read((char *)&pci_struct_offset, sizeof(pci_struct_offset));