mistaken cut and paste and is just a bug.
git-svn-id: svn://svn.tartarus.org/sgt/putty@9967
cda61777-01e9-0310-a592-
d414129be87e
es = find234(errstrings, &error, errstring_find);
if (!es) {
es = find234(errstrings, &error, errstring_find);
if (!es) {
es = snew(struct errstring);
es->error = error;
es = snew(struct errstring);
es->error = error;
if (!FormatMessage((FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS), NULL, error,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
if (!FormatMessage((FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS), NULL, error,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
- es->text + bufused, bufsize - bufused, NULL)) {
+ es->text, bufsize, NULL)) {
sprintf(es->text,
"Windows error code %d (and FormatMessage returned %d)",
error, GetLastError());
sprintf(es->text,
"Windows error code %d (and FormatMessage returned %d)",
error, GetLastError());