Skip to content

Commit

Permalink
(maint) Merge FACT-1082 fix to wmi
Browse files Browse the repository at this point in the history
The wmi utility was moved to Leatherman after Facter 3.0 was released,
so some merges from stable to master require merges across-project to
Leatherman. Merge the FACT-1082 fix for COM initialization.
  • Loading branch information
Michael Smith committed Jul 6, 2015
1 parent 93bcab2 commit 4b296f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windows/src/wmi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace leatherman { namespace windows {
wmi::wmi()
{
LOG_DEBUG("initializing WMI");
auto hres = CoInitializeEx(0, COINIT_MULTITHREADED);
auto hres = CoInitializeEx(0, COINIT_APARTMENTTHREADED);
if (FAILED(hres)) {
if (hres == RPC_E_CHANGED_MODE) {
LOG_DEBUG("using prior COM concurrency model");
Expand Down

0 comments on commit 4b296f1

Please sign in to comment.