Skip to content

Commit

Permalink
Resolve relative PDB paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Systemcluster committed Mar 21, 2024
1 parent aefddb0 commit 580b191
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 580b191

Please sign in to comment.