Ensure COM is initialized for VST hosts that might not have done so

This commit is contained in:
Jack Andersen 2016-06-17 10:11:35 -10:00
parent 22610f32e9
commit b231cf9104
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ HRESULT CDialogEventHandler_CreateInstance(REFIID riid, void **ppv);
std::wstring openDB() std::wstring openDB()
{ {
std::wstring ret; std::wstring ret;
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE);
//Cocreate the file open dialog object //Cocreate the file open dialog object
IFileDialog *pfd = NULL; IFileDialog *pfd = NULL;