mirror of
https://github.com/microsoft/UVAtlas
synced 2024-09-19 14:20:00 +00:00
Fixed localized error strings
This commit is contained in:
parent
e3b2087e32
commit
7b8d1fc482
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user