Explorar el Código

Comment on possible optimization of FindOtherInstances

Source commit: 8d02d08992d111c7a63a90c90fe0877efac8bfd1
Martin Prikryl hace 2 años
padre
commit
772e6a841f
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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)
   {