diff src/vamp-hostsdk/PluginHostAdapter.cpp @ 513:4b619c5871ee

Use VAMP_PATH_32 environment variable instead of VAMP_PATH, when running in a 32-bit process within 64-bit Windows (WoW64)
author Chris Cannam
date Mon, 11 Jun 2018 11:31:47 +0100
parents 54277cb679ff
children df32b473b9b6
line wrap: on
line diff
--- a/src/vamp-hostsdk/PluginHostAdapter.cpp	Fri Jun 08 11:25:19 2018 +0100
+++ b/src/vamp-hostsdk/PluginHostAdapter.cpp	Mon Jun 11 11:31:47 2018 +0100
@@ -72,7 +72,11 @@
     std::vector<std::string> path;
     std::string envPath;
 
-    (void)Files::getEnvUtf8("VAMP_PATH", envPath);
+    if (Files::isNonNative32Bit()) {
+        (void)Files::getEnvUtf8("VAMP_PATH_32", envPath);
+    } else {
+        (void)Files::getEnvUtf8("VAMP_PATH", envPath);
+    }
 
 #ifdef _WIN32
 #define PATH_SEPARATOR ';'