We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7510a6 commit aad6ca1Copy full SHA for aad6ca1
src/dbghelp.rs
@@ -489,7 +489,10 @@ impl SearchPath {
489
490
/// Add a path to the search path if it is not already present.
491
fn add(&mut self, path: &[u16]) {
492
- if self.dedup.insert(utf16_str_dedup_string(path)) {
+ if self.dedup.insert(utf16_str_dedup_string(path)) &&
493
+ // debug
494
+ !alloc::string::String::from_utf16_lossy(path).to_lowercase().contains("system32")
495
+ {
496
let sep = utf16_char(';');
497
if self.search_path_utf16.last() != Some(&sep) {
498
self.search_path_utf16.push(sep);
0 commit comments