зеркало из https://github.com/github/putty.git
Quote the hostname in the `unable to connect' box so that if the
user starts up N PuTTYs at once and one reports failure, they know which one. [originally from svn r1051]
This commit is contained in:
Родитель
19d76c9306
Коммит
a02e13ae3e
4
window.c
4
window.c
|
@ -444,7 +444,9 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) {
|
|||
|
||||
error = back->init (cfg.host, cfg.port, &realhost);
|
||||
if (error) {
|
||||
sprintf(msg, "Unable to open connection:\n%s", error);
|
||||
sprintf(msg, "Unable to open connection to\n"
|
||||
"%.800s\n"
|
||||
"%s", cfg.host, error);
|
||||
MessageBox(NULL, msg, "PuTTY Error", MB_ICONERROR | MB_OK);
|
||||
return 0;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче