- client: check return value of FormatMessageW()

so we don't print garbage
This commit is contained in:
David Anderson 2013-04-11 01:22:43 -07:00
parent 7442ec888d
commit 229be73d2b
1 changed files with 2 additions and 0 deletions

View File

@ -911,6 +911,8 @@ char* windows_format_error_string(
if (lpszTemp) {
LocalFree((HLOCAL) lpszTemp);
}
} else {
strcpy(pszBuf, "(unknown error)");
}
return pszBuf;