fix MakeImport tool

This commit is contained in:
Wolfgang Thaller 2022-01-17 00:12:35 +01:00
parent c01f65322d
commit fdc7063870
1 changed files with 7 additions and 1 deletions

View File

@ -215,7 +215,13 @@ void MakeImportLibrary(char *pefptr, size_t pefsize, fs::path dest, fs::path tmp
bool MakeImportLibraryMulti(fs::path path, fs::path libname)
{
ResourceFile resFile;
assert(resFile.read(path.string()));
bool readSuccess = resFile.read(path.string());
if (!readSuccess)
{
std::cerr << "Could not read input file.\n";
return false;
}
std::vector<char> data(resFile.data.begin(), resFile.data.end());