Skip to content

Commit

Permalink
Use CoInitializeEx to init COM.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetopia committed Jan 3, 2025
1 parent 225d8ea commit 7a0043d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WinMain.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7a0043d

Please sign in to comment.