From b231cf91040d9d3e93d56b517212c65e61f63fa5 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Fri, 17 Jun 2016 10:11:35 -1000 Subject: [PATCH] Ensure COM is initialized for VST hosts that might not have done so --- VST/FileOpenDialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/VST/FileOpenDialog.cpp b/VST/FileOpenDialog.cpp index 557fff9..758f728 100644 --- a/VST/FileOpenDialog.cpp +++ b/VST/FileOpenDialog.cpp @@ -88,6 +88,7 @@ HRESULT CDialogEventHandler_CreateInstance(REFIID riid, void **ppv); std::wstring openDB() { std::wstring ret; + CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE); //Cocreate the file open dialog object IFileDialog *pfd = NULL;