Unify processes list in BugReportTool source (#14269)

This commit is contained in:
Stefan Markovic
2021-11-05 16:44:39 +01:00
committed by GitHub
parent 3a6dd45741
commit 159629372d
5 changed files with 28 additions and 28 deletions

View File

@@ -4,6 +4,8 @@
using namespace std;
extern std::vector<std::wstring> processes;
namespace
{
vector<pair<HKEY, wstring>> registryKeys = {
@@ -163,20 +165,8 @@ namespace
void ReportCompatibilityTab(HKEY key, wofstream& report)
{
vector<std::wstring> apps
{
L"PowerToys.exe",
L"ColorPickerUI.exe",
L"FancyZonesEditor.exe",
L"PowerToys.FancyZones.exe",
L"PowerToys.KeyboardManagerEngine.exe",
L"PowerToys.KeyboardManagerEditor.exe",
L"PowerLauncher.exe",
L"PowerToys.ShortcutGuide.exe"
};
map<wstring, wstring> flags;
for (auto app : apps)
for (auto app : processes)
{
flags[app] = L"";
}
@@ -190,7 +180,7 @@ void ReportCompatibilityTab(HKEY key, wofstream& report)
auto values = QueryValues(outKey);
for (auto value : values)
{
for (auto app : apps)
for (auto app : processes)
{
if (value.first.find(app) != wstring::npos)
{