Skip to content

Commit

Permalink
Merge pull request #66 from Systemcluster/fix-pdb-path
Browse files Browse the repository at this point in the history
Resolve relative PDB paths
  • Loading branch information
nico-abram authored Mar 21, 2024
2 parents aefddb0 + 580b191 commit 4842e0b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,10 @@ fn find_pdbs(images: &[(OsString, u64, u64)]) -> Vec<(u64, u64, OsString, OwnedP
Ok(x) => x,
_ => continue,
};
let pdb_path = PathBuf::from(pdb_path);
let mut pdb_path = PathBuf::from(pdb_path);
if pdb_path.is_relative() {
pdb_path = path.parent().unwrap().join(pdb_path);
}
if pdb_path.exists() {
let mut file = match std::fs::File::open(pdb_path) {
Err(_) => continue,
Expand Down

0 comments on commit 4842e0b

Please sign in to comment.