[CPU] Oops.

This commit is contained in:
gibbed 2018-11-24 14:59:47 -06:00
parent f7501750d9
commit dd3a049b23
1 changed files with 2 additions and 3 deletions

View File

@ -1144,9 +1144,8 @@ bool XexModule::LoadContinue() {
}
}
auto library_data = reinterpret_cast<uint8_t*>(opt_import_libraries) +
opt_import_libraries->string_table.size + 12;
uint32_t library_offset = 0;
auto library_data = reinterpret_cast<uint8_t*>(opt_import_libraries);
uint32_t library_offset = opt_import_libraries->string_table.size + 12;
while (library_offset < opt_import_libraries->size) {
auto library =
reinterpret_cast<xex2_import_library*>(library_data + library_offset);