Skip to content

Commit

Permalink
Changed Com initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
drzhn committed Oct 12, 2023
1 parent 6d85685 commit 549e9f0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Texconv/texconv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,7 @@ int Convert(
std::locale::global(std::locale(""));

// Initialize COM (needed for WIC)
HRESULT hr = CoInitializeEx(nullptr, COINIT_MULTITHREADED);
HRESULT hr = CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
if (FAILED(hr))
{
wprintf(L"Failed to initialize COM (%08X%ls)\n", static_cast<unsigned int>(hr), GetErrorDesc(hr));
Expand Down
Binary file modified lib/x64/Debug/texconv.lib
Binary file not shown.
Binary file modified lib/x64/Release/texconv.lib
Binary file not shown.

0 comments on commit 549e9f0

Please sign in to comment.