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:
Max Kellermann 2021-03-08 14:03:05 +01:00
parent 927f1e03a3
commit ec76583c33

View File

@ -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,