mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-09 11:40:14 +02:00
tex tools: remove newlines from FORMAT_MESSAGE_FROM_SYSTEM (#355)
This commit is contained in:
parent
f5d41447f8
commit
d664193c05
@ -752,6 +752,14 @@ namespace
|
|||||||
|
|
||||||
if (errorText)
|
if (errorText)
|
||||||
LocalFree(errorText);
|
LocalFree(errorText);
|
||||||
|
|
||||||
|
for (wchar_t* ptr = desc; *ptr != 0; ++ptr)
|
||||||
|
{
|
||||||
|
if (*ptr == L'\r' || *ptr == L'\n')
|
||||||
|
{
|
||||||
|
*ptr = L' ';
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return desc;
|
return desc;
|
||||||
|
@ -1047,6 +1047,14 @@ namespace
|
|||||||
|
|
||||||
if (errorText)
|
if (errorText)
|
||||||
LocalFree(errorText);
|
LocalFree(errorText);
|
||||||
|
|
||||||
|
for (wchar_t* ptr = desc; *ptr != 0; ++ptr)
|
||||||
|
{
|
||||||
|
if (*ptr == L'\r' || *ptr == L'\n')
|
||||||
|
{
|
||||||
|
*ptr = L' ';
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return desc;
|
return desc;
|
||||||
|
@ -751,6 +751,14 @@ namespace
|
|||||||
|
|
||||||
if (errorText)
|
if (errorText)
|
||||||
LocalFree(errorText);
|
LocalFree(errorText);
|
||||||
|
|
||||||
|
for(wchar_t* ptr = desc; *ptr != 0; ++ptr)
|
||||||
|
{
|
||||||
|
if (*ptr == L'\r' || *ptr == L'\n')
|
||||||
|
{
|
||||||
|
*ptr = L' ';
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return desc;
|
return desc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user