Преглед на файлове

Optimization when no ancestor process is identified

(cherry picked from commit aa3deb17bed728db8f2833ebf94eef8535f6834c)

Source commit: 94ac2d29cc95b64e4b9d19e143ff402336781934
Martin Prikryl преди 4 години
родител
ревизия
ea577264ab
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      source/core/Common.cpp

+ 4 - 0
source/core/Common.cpp

@@ -4200,6 +4200,10 @@ UnicodeString __fastcall GetAncestorProcessName(int Levels)
       {
         Result = GetProcessName(ProcessId);
       }
+      else if (Result.IsEmpty())
+      {
+        Result = L"n/a";
+      }
 
       CloseHandle(Snapshot);
     }