Fixed localized error strings

This commit is contained in:
Chuck Walbourn
2021-04-28 14:33:45 -07:00
parent 66ffe6e882
commit 1ab21d9900
3 changed files with 13 additions and 1 deletions

View File

@@ -27,9 +27,10 @@
#include <cwchar>
#include <fstream>
#include <iterator>
#include <list>
#include <locale>
#include <memory>
#include <new>
#include <list>
#include <utility>
#include <vector>
@@ -857,6 +858,9 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
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 = hr = CoInitializeEx(nullptr, COINIT_MULTITHREADED);
if (FAILED(hr))