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/SetupDLL/Setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/SetupDLL/Setup.c') diff --git a/src/SetupDLL/Setup.c b/src/SetupDLL/Setup.c index 6a288a5c..1c3782dd 100644 --- a/src/SetupDLL/Setup.c +++ b/src/SetupDLL/Setup.c @@ -1994,7 +1994,7 @@ BOOL InitDll (MSIHANDLE hInstaller) InitGlobalLocks (); SetErrorMode (SetErrorMode (0) | SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX); - CoInitialize (NULL); + CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE); // Force language to english to read strings from the default Language.xml embedded in the DLL. SetPreferredLangId ("en"); -- cgit v1.2.3