Miscellaneous fixes for better interoperation with commercial SSH 2
[sgt/putty] / window.c
index 822cb01..bb43636 100644 (file)
--- a/window.c
+++ b/window.c
@@ -126,6 +126,10 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) {
 
     InitCommonControls();
 
+    /* Ensure a Maximize setting in Explorer doesn't maximise the
+     * config box. */
+    defuse_showwindow();
+
     /*
      * Process the command line.
      */
@@ -650,6 +654,9 @@ static void enact_pending_netevent(void) {
          case WSAECONNRESET:
            sprintf(buf, "Connection reset by peer");
            break;
+         case WSAECONNABORTED:
+           sprintf(buf, "Connection aborted");
+           break;
          default:
            sprintf(buf, "Unexpected network error %d", -i);
            break;