Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoerister committed Feb 16, 2024
1 parent c7510a6 commit aad6ca1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dbghelp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aad6ca1

Please sign in to comment.