mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-04 04:16:12 +01:00
Fixed localized error strings
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include <fstream>
|
||||
#include <iterator>
|
||||
#include <list>
|
||||
#include <locale>
|
||||
#include <memory>
|
||||
#include <new>
|
||||
#include <string>
|
||||
@@ -1289,6 +1290,9 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
|
||||
wchar_t szSuffix[MAX_PATH] = {};
|
||||
wchar_t szOutputDir[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))
|
||||
|
||||
Reference in New Issue
Block a user