simon-svn: putty: simon
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Tue Nov 13 18:36:27 GMT 2012
SVN root: svn://svn.tartarus.org/sgt
Changes by: simon
Revision: 9704
Date: 2012-11-13 18:36:27 +0000 (Tue, 13 Nov 2012)
Log message (10 lines):
Add a fallback case to winsock_error_string() which makes it call
FormatMessage to get the OS's text for any error not in our own
translation table. Should eliminate the frustrating 'unknown error'.
(I haven't chosen to use FormatMessage unconditionally, because it
comes out with enormous messages along the lines of "No connection
could be made because the target machine actively refused it" in place
of "Connection refused" and I'm Unixy enough to prefer the latter.
Also, on older Windowses, Winsock error codes are in a separate API
segment and don't work with FormatMessage anyway.)
Modified files:
U putty/windows/winnet.c
Links:
http://svn.tartarus.org/sgt/?rev=9704&view=rev
http://svn.tartarus.org/sgt/putty/windows/winnet.c?rev=9704&r1=9703&r2=9704
More information about the tartarus-commits
mailing list