uvatlastool: remove newlines from FORMAT_MESSAGE_FROM_SYSTEM (#114)

This commit is contained in:
Chuck Walbourn 2023-05-17 11:37:27 -07:00 committed by GitHub
parent 70b9b272ba
commit 4a9b77afde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -583,6 +583,14 @@ namespace
if (errorText)
LocalFree(errorText);
for (wchar_t* ptr = desc; *ptr != 0; ++ptr)
{
if (*ptr == L'\r' || *ptr == L'\n')
{
*ptr = L' ';
}
}
}
return desc;