1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 02:58:02 -06:00

Windows: replace CoInitialize calls with CoInitializeEx

This commit is contained in:
Mounir IDRASSI
2023-09-11 00:03:28 +02:00
parent aa311a6fad
commit d2f2defca9
6 changed files with 15 additions and 15 deletions

View File

@@ -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");