diff --git a/src/WinMain.c b/src/WinMain.c index a5d8e24..7ba2ea6 100644 --- a/src/WinMain.c +++ b/src/WinMain.c @@ -40,7 +40,7 @@ VOID WinMainCRTStartup() SetNamedSecurityInfoW(szLibFileName, SE_FILE_OBJECT, DACL_SECURITY_INFORMATION, NULL, NULL, NewAcl, NULL); - CoInitialize(NULL); + CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE); IPackageDebugSettings *pPackageDebugSettings = NULL; CoCreateInstance(&CLSID_PackageDebugSettings, NULL, CLSCTX_INPROC_SERVER, &IID_IPackageDebugSettings,