Merge pull request #285 from Dufftwt/fix/name-title-dll-that-fails-to-prepare
Loader: a title DLL that fails to prepare is named in the error
This commit is contained in:
2 files changed
+18
-2
No files matched your search
@@ -152,8 +152,8 @@ fn map_dll(
|
||||
return Ok(());
|
||||
}
|
||||
let original = std::fs::read(&path).with_context(|| format!("reading {}", path.display()))?;
|
||||
let image = load(&prepare(&original)?, dirs.1)
|
||||
.with_context(|| format!("loading {}", path.display()))?;
|
||||
let prepared = prepare(&original).with_context(|| format!("preparing {}", path.display()))?;
|
||||
let image = load(&prepared, dirs.1).with_context(|| format!("loading {}", path.display()))?;
|
||||
map_imports(&image.info, dirs, wanted, seen, loaded)?;
|
||||
loaded.push((name, image));
|
||||
Ok(())
|
||||
|
||||
Reference in new issue
Block a user