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:
Simon Tatham 2001-04-16 16:19:30 +00:00
Родитель 19d76c9306
Коммит a02e13ae3e
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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;
}