1
0
Эх сурвалжийг харах

Recognizing installer binary name even when it has a numeric index automatically added by browser

Source commit: 93b32a50e4b531f8e27883cedf451811bd2d5f1c
Martin Prikryl 4 жил өмнө
parent
commit
65a0730c8e

+ 1 - 1
source/windows/WinMain.cpp

@@ -536,7 +536,7 @@ void __fastcall UpdateStaticUsage()
   UnicodeString ParentProcess = GetAncestorProcessName();
   // do not record the installer as a parent process
   if (!ParentProcess.IsEmpty() &&
-      (!StartsText(L"winscp-", ParentProcess) || !EndsText(L"-setup", ParentProcess)))
+      (!StartsText(L"winscp-", ParentProcess) || !ContainsText(ParentProcess, L"-setup")))
   {
     UnicodeString ParentProcesses = Configuration->Usage->Get(L"ParentProcesses");
     std::unique_ptr<TStringList> ParentProcessesList(CreateSortedStringList());