From ec76583c33bb9a53985ae0ff9db602e2852d9c70 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 8 Mar 2021 14:03:05 +0100 Subject: [PATCH] win32/Com: add COINIT_DISABLE_OLE1DDE MSDN documentation suggests always passing this flag to reduce overhead for an "obsolete technology". --- src/win32/Com.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win32/Com.hxx b/src/win32/Com.hxx index ba749a8c1..173b0fcc9 100644 --- a/src/win32/Com.hxx +++ b/src/win32/Com.hxx @@ -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,