Remove port number validation from Windows PuTTY -- it could cause unnecessary
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 1 Jul 2007 15:41:09 +0000 (15:41 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 1 Jul 2007 15:41:09 +0000 (15:41 +0000)
trouble with serial connections, and a port number of zero gets caught later
anyway.

git-svn-id: svn://svn.tartarus.org/sgt/putty@7634 cda61777-01e9-0310-a592-d414129be87e

windows/window.c

index 1d4b715..033cfa5 100644 (file)
@@ -597,15 +597,6 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
        }
     }
 
-    /* Check for invalid Port number (i.e. zero) */
-    if (cfg.port == 0) {
-       char *str = dupprintf("%s Internal Error", appname);
-       MessageBox(NULL, "Invalid Port Number",
-                  str, MB_OK | MB_ICONEXCLAMATION);
-       sfree(str);
-       cleanup_exit(1);
-    }
-
     if (!prev) {
        wndclass.style = 0;
        wndclass.lpfnWndProc = WndProc;