Skip to content

Commit

Permalink
Fix winevst for DLL_PROCESS_ATTACH
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Jan 2, 2024
1 parent c2031ed commit 46792aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/plugin/carla-vst-export-bridged.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ static HINSTANCE getCurrentModuleInstanceHandle() noexcept
CARLA_PLUGIN_EXPORT
BOOL WINAPI DllMain(HINSTANCE hInst, DWORD, LPVOID)
{
currentModuleHandle = hInst;
if (reason == DLL_PROCESS_ATTACH)
currentModuleHandle = hInst;
return 1;
}

Expand Down

0 comments on commit 46792aa

Please sign in to comment.