From d2f2defca9eac0d7f779296bf52f36b161fc6b31 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 11 Sep 2023 00:03:28 +0200 Subject: Windows: replace CoInitialize calls with CoInitializeEx --- src/Mount/Mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Mount/Mount.c') diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c index e41d9a08..f5c22a9e 100644 --- a/src/Mount/Mount.c +++ b/src/Mount/Mount.c @@ -295,7 +295,7 @@ static std::vector GetReadChildNodes (MSXML2::IXMLDOMNod static bool validateDcsPropXml(const char* xmlData) { bool bValid = false; - HRESULT hr = CoInitialize(NULL); + HRESULT hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE); if(FAILED(hr)) return false; else -- cgit v1.2.3