mirror of
https://github.com/microsoft/UVAtlas
synced 2024-11-09 13:50:05 +00:00
uvatlastool: remove newlines from FORMAT_MESSAGE_FROM_SYSTEM (#114)
This commit is contained in:
parent
70b9b272ba
commit
4a9b77afde
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user