mirror of https://github.com/BOINC/boinc.git
- client: check return value of FormatMessageW()
so we don't print garbage
This commit is contained in:
parent
7442ec888d
commit
229be73d2b
|
@ -911,6 +911,8 @@ char* windows_format_error_string(
|
|||
if (lpszTemp) {
|
||||
LocalFree((HLOCAL) lpszTemp);
|
||||
}
|
||||
} else {
|
||||
strcpy(pszBuf, "(unknown error)");
|
||||
}
|
||||
|
||||
return pszBuf;
|
||||
|
|
Loading…
Reference in New Issue