From 580b191005f3eb7d0589deb8eb36937fbfc03a4a Mon Sep 17 00:00:00 2001 From: Systemcluster Date: Thu, 21 Mar 2024 16:43:22 +0100 Subject: [PATCH] Resolve relative PDB paths --- src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index f428f85..2087fc8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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,