win32/Com: add COINIT_DISABLE_OLE1DDE
MSDN documentation suggests always passing this flag to reduce overhead for an "obsolete technology".
This commit is contained in:
parent
927f1e03a3
commit
ec76583c33
|
@ -29,7 +29,7 @@
|
|||
class COM {
|
||||
public:
|
||||
COM() {
|
||||
if (HRESULT result = CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
|
||||
if (HRESULT result = CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED|COINIT_DISABLE_OLE1DDE);
|
||||
FAILED(result)) {
|
||||
throw MakeHResultError(
|
||||
result,
|
||||
|
|
Loading…
Reference in New Issue