Browse Source

Comment on possible optimization of FindOtherInstances

Source commit: 8d02d08992d111c7a63a90c90fe0877efac8bfd1
Martin Prikryl 2 years ago
parent
commit
772e6a841f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      source/windows/WinMain.cpp

+ 1 - 0
source/windows/WinMain.cpp

@@ -644,6 +644,7 @@ BOOL __stdcall EnumOtherInstances(HWND Handle, LPARAM AParam)
 {
   TProcesses & Processes = *reinterpret_cast<TProcesses *>(AParam);
 
+  // This should be optimized to query class name already here
   unsigned long ProcessId;
   if (GetWindowThreadProcessId(Handle, &ProcessId) != 0)
   {