mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
Remove port number validation from Windows PuTTY -- it could cause unnecessary
trouble with serial connections, and a port number of zero gets caught later anyway. [originally from svn r7634]
This commit is contained in:
parent
46c00b0f38
commit
6c14388c1d
@ -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) {
|
if (!prev) {
|
||||||
wndclass.style = 0;
|
wndclass.style = 0;
|
||||||
wndclass.lpfnWndProc = WndProc;
|
wndclass.lpfnWndProc = WndProc;
|
||||||
|
Loading…
Reference in New Issue
Block a user