Fixed printf portability issues

This commit is contained in:
Chuck Walbourn 2019-11-15 00:09:23 -08:00
Родитель 5ae2dd5404
Коммит a1c4bc3ad6
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -590,7 +590,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
if (!msgs.empty())
{
wprintf(L"\nWARNING: \n");
wprintf(msgs.c_str());
wprintf(L"%ls", msgs.c_str());
}
// Clean (also handles attribute reuse split if needed)
@ -644,7 +644,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
hr = inMesh->ComputeNormals(flags);
if (FAILED(hr))
{
wprintf(L"\nERROR: Failed computing normals (flags:%1X, %08X)\n", flags, static_cast<unsigned int>(hr));
wprintf(L"\nERROR: Failed computing normals (flags:%lX, %08X)\n", flags, static_cast<unsigned int>(hr));
return 1;
}
}
@ -798,7 +798,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
if (FAILED(hr))
{
wprintf(L"\nERROR: Failed write (%08X):-> '%ls'\n", hr, outputPath);
wprintf(L"\nERROR: Failed write (%08X):-> '%ls'\n", static_cast<unsigned int>(hr), outputPath);
return 1;
}