From aad6ca1069c808be67600f3c5e067cad20a1a3f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20W=C3=B6rister?= Date: Fri, 16 Feb 2024 14:45:00 +0100 Subject: [PATCH] debug --- src/dbghelp.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);