Browse Source

Ignoring GetModuleFileNameEx failure when reporting parent process name

Source commit: 8067da1c57638b64cda99520df0798bccef210d0
Martin Prikryl 4 years ago
parent
commit
9d6aecc152
1 changed files with 2 additions and 1 deletions
  1. 2 1
      source/core/Common.cpp

+ 2 - 1
source/core/Common.cpp

@@ -4173,7 +4173,8 @@ UnicodeString __fastcall GetAncestorProcessName(int Levels)
           DWORD Len = GetModuleFileNameEx(Process, NULL, Result.c_str(), Result.Length());
           if (Len == 0)
           {
-            Result = L"err-name";
+            // is common too, for some reason
+            Result = UnicodeString();
           }
           else
           {