Commit 0bc24748 authored by captainwong's avatar captainwong

change coinitilizeex param

parent ddaf585e
...@@ -442,7 +442,7 @@ static bool query(const std::vector<QueryType>& queryTypes, std::unordered_map<Q ...@@ -442,7 +442,7 @@ static bool query(const std::vector<QueryType>& queryTypes, std::unordered_map<Q
bool ok = false; bool ok = false;
// 初始化COM // 初始化COM
HRESULT hres = CoInitializeEx(NULL, COINIT_MULTITHREADED); HRESULT hres = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
if (FAILED(hres)) { if (FAILED(hres)) {
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment