mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-10-31 09:14:47 +00:00
Merge pull request #38 from joevt/master
pcidevice: fix struct offset in the expansion ROM header.
This commit is contained in:
commit
de082626ab
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user