Skip to content

Commit

Permalink
Update CModuleSystem.cpp (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
x87 authored Apr 9, 2024
1 parent fff6c12 commit e24e326
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/CModuleSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,13 @@ bool CModuleSystem::CModule::ModuleExport::LoadFromFile(std::ifstream& file)
return false;
}

// skip flags (1 byte) and address (4 bytes)
file.seekg(5, file.cur);
if (file.fail())
{
return false;
}

return true; // done
}

Expand Down

0 comments on commit e24e326

Please sign in to comment.