From a4a0bc1d280513a72c0101660a7e62cfc99b33a2 Mon Sep 17 00:00:00 2001 From: Andrew Innes Date: Thu, 19 Oct 2023 17:53:25 +0800 Subject: [PATCH] Update parsedump.py --- contrib/windows/parsedump/parsedump.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/windows/parsedump/parsedump.py b/contrib/windows/parsedump/parsedump.py index 9a5d5fd3281f..86541cf76a49 100644 --- a/contrib/windows/parsedump/parsedump.py +++ b/contrib/windows/parsedump/parsedump.py @@ -17,10 +17,10 @@ def find_first_existing_file(file_paths): # List of file paths to check cdb_file_paths_to_check = [ - "C:\\Program Files\\Windows Kits\\10\\Debuggers\\x64\\cdb.exe", - "C:\\Program Files (x86)\\Windows Kits\\10\\Debuggers\\x64\\cdb.exe", - "C:\\Program Files\\Windows Kits\\10\\Debuggers\\x86\\cdb.exe", - "C:\\Program Files (x86)\\Windows Kits\\10\\Debuggers\\x86\\cdb.exe" + "%ProgramFiles%\\Windows Kits\\10\\Debuggers\\x64\\cdb.exe", + "%ProgramFiles(x86)%\\Windows Kits\\10\\Debuggers\\x64\\cdb.exe", + "%ProgramFiles%\\Windows Kits\\10\\Debuggers\\x86\\cdb.exe", + "%ProgramFiles(x86)%\\Windows Kits\\10\\Debuggers\\x86\\cdb.exe" ] cdbstr = find_first_existing_file(cdb_file_paths_to_check)