mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-16 12:03:03 -05:00
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:
parent
19d76c9306
commit
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);
|
error = back->init (cfg.host, cfg.port, &realhost);
|
||||||
if (error) {
|
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);
|
MessageBox(NULL, msg, "PuTTY Error", MB_ICONERROR | MB_OK);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user