diff --git a/src/dbghelp.rs b/src/dbghelp.rs index 873c6436..d375c604 100644 --- a/src/dbghelp.rs +++ b/src/dbghelp.rs @@ -489,7 +489,10 @@ impl SearchPath { /// Add a path to the search path if it is not already present. fn add(&mut self, path: &[u16]) { - if self.dedup.insert(utf16_str_dedup_string(path)) { + if self.dedup.insert(utf16_str_dedup_string(path)) && + // debug + !alloc::string::String::from_utf16_lossy(path).to_lowercase().contains("system32") + { let sep = utf16_char(';'); if self.search_path_utf16.last() != Some(&sep) { self.search_path_utf16.push(sep);