Browse Source

Fix winevst for DLL_PROCESS_ATTACH

Signed-off-by: falkTX <falktx@falktx.com>
pull/1849/head
falkTX 10 months ago
parent
commit
46792aaa45
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      source/plugin/carla-vst-export-bridged.cpp

+ 2
- 1
source/plugin/carla-vst-export-bridged.cpp View File

@@ -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;
}



Loading…
Cancel
Save