Pārlūkot izejas kodu

Comment on possible optimization of FindOtherInstances

Source commit: 8d02d08992d111c7a63a90c90fe0877efac8bfd1
Martin Prikryl 2 gadi atpakaļ
vecāks
revīzija
772e6a841f
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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);
   TProcesses & Processes = *reinterpret_cast<TProcesses *>(AParam);
 
 
+  // This should be optimized to query class name already here
   unsigned long ProcessId;
   unsigned long ProcessId;
   if (GetWindowThreadProcessId(Handle, &ProcessId) != 0)
   if (GetWindowThreadProcessId(Handle, &ProcessId) != 0)
   {
   {