Skip to content

Commit aad6ca1

Browse files
debug
1 parent c7510a6 commit aad6ca1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/dbghelp.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,10 @@ impl SearchPath {
489489

490490
/// Add a path to the search path if it is not already present.
491491
fn add(&mut self, path: &[u16]) {
492-
if self.dedup.insert(utf16_str_dedup_string(path)) {
492+
if self.dedup.insert(utf16_str_dedup_string(path)) &&
493+
// debug
494+
!alloc::string::String::from_utf16_lossy(path).to_lowercase().contains("system32")
495+
{
493496
let sep = utf16_char(';');
494497
if self.search_path_utf16.last() != Some(&sep) {
495498
self.search_path_utf16.push(sep);

0 commit comments

Comments
 (0)