Fixed localized error strings

This commit is contained in:
Chuck Walbourn 2021-04-28 14:55:29 -07:00
parent e3b2087e32
commit 7b8d1fc482

View File

@ -29,6 +29,7 @@
#include <fstream>
#include <iterator>
#include <list>
#include <locale>
#include <memory>
#include <new>
@ -517,6 +518,9 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
wchar_t szTexFile[MAX_PATH] = {};
wchar_t szOutputFile[MAX_PATH] = {};
// Set locale for output since GetErrorDesc can get localized strings.
std::locale::global(std::locale(""));
// Initialize COM (needed for WIC)
HRESULT hr = CoInitializeEx(nullptr, COINIT_MULTITHREADED);
if (FAILED(hr))