From 731c870cdbec1715d862c69df9ad77a73a3f96ca Mon Sep 17 00:00:00 2001 From: Seemann Date: Mon, 8 Apr 2024 16:45:39 -0400 Subject: [PATCH] Update CModuleSystem.cpp --- source/CModuleSystem.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/CModuleSystem.cpp b/source/CModuleSystem.cpp index 6b99a18c..0e7d5597 100644 --- a/source/CModuleSystem.cpp +++ b/source/CModuleSystem.cpp @@ -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 }