Skip to content

Commit

Permalink
fix #4306 VST UI Lockup
Browse files Browse the repository at this point in the history
  • Loading branch information
justnope authored and DomClark committed Aug 14, 2018
1 parent edf2365 commit 24c403d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/vst_base/RemoteVstPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2051,6 +2051,10 @@ LRESULT CALLBACK RemoteVstPlugin::wndProc( HWND hwnd, UINT uMsg,

int main( int _argc, char * * _argv )
{
#ifdef LMMS_BUILD_WIN32
CoInitialize(nullptr);
#endif

#ifdef SYNC_WITH_SHM_FIFO
if( _argc < 4 )
#else
Expand Down Expand Up @@ -2176,6 +2180,9 @@ int main( int _argc, char * * _argv )

delete __plugin;

#ifdef LMMS_BUILD_WIN32
CoUninitialize();
#endif

#ifdef LMMS_BUILD_WIN32
#ifndef __WINPTHREADS_VERSION
Expand Down

0 comments on commit 24c403d

Please sign in to comment.