Преглед изворни кода

Compatibility with PuTTY 0.70

Source commit: ab9a0834d41c463fdc3191c65597881ac4300efa
Martin Prikryl пре 8 година
родитељ
комит
eabe50f0cf
2 измењених фајлова са 3 додато и 7 уклоњено
  1. 2 6
      source/core/SecureShell.cpp
  2. 1 1
      source/putty/puttyexp.h

+ 2 - 6
source/core/SecureShell.cpp

@@ -1815,12 +1815,8 @@ void __fastcall TSecureShell::HandleNetworkEvents(SOCKET Socket, WSANETWORKEVENT
       #pragma option push -w-prc
       LPARAM SelectEvent = WSAMAKESELECTREPLY(EventTypes[Event].Mask, Err);
       #pragma option pop
-      if (!select_result((WPARAM)Socket, SelectEvent))
-      {
-        // note that connection was closed definitely,
-        // so "check" is actually not required
-        CheckConnection();
-      }
+      select_result((WPARAM)Socket, SelectEvent);
+      CheckConnection();
     }
   }
 }

+ 1 - 1
source/putty/puttyexp.h

@@ -55,7 +55,7 @@ void putty_unmungestr(const char *in, char *out, int outlen);
 
 // from winnet.c
 
-int select_result(WPARAM wParam, LPARAM lParam);
+void select_result(WPARAM wParam, LPARAM lParam);
 
 // from sshzlib.c