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 {
|
class COM {
|
||||||
public:
|
public:
|
||||||
COM() {
|
COM() {
|
||||||
if (HRESULT result = CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
|
if (HRESULT result = CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED|COINIT_DISABLE_OLE1DDE);
|
||||||
FAILED(result)) {
|
FAILED(result)) {
|
||||||
throw MakeHResultError(
|
throw MakeHResultError(
|
||||||
result,
|
result,
|
||||||
|
|
Loading…
Reference in New Issue