comparison src/vamp-hostsdk/PluginHostAdapter.cpp @ 259:7d678f889789 vamp-plugin-sdk-v2.0pre1

...
author cannam
date Fri, 14 Nov 2008 13:53:32 +0000
parents 7b90fe049d04
children 4454843ff384
comparison
equal deleted inserted replaced
258:f7b34848afd2 259:7d678f889789
94 envPath.replace(f, 5, home); 94 envPath.replace(f, 5, home);
95 } 95 }
96 } 96 }
97 #ifdef _WIN32 97 #ifdef _WIN32
98 char *cpfiles = getenv("ProgramFiles"); 98 char *cpfiles = getenv("ProgramFiles");
99 if (!cpfiles) cpfiles = "C:\\Program Files"; 99 if (!cpfiles) cpfiles = (char *)"C:\\Program Files";
100 std::string pfiles(cpfiles); 100 std::string pfiles(cpfiles);
101 std::string::size_type f; 101 std::string::size_type f;
102 while ((f = envPath.find("%ProgramFiles%")) != std::string::npos && 102 while ((f = envPath.find("%ProgramFiles%")) != std::string::npos &&
103 f < envPath.length()) { 103 f < envPath.length()) {
104 envPath.replace(f, 14, pfiles); 104 envPath.replace(f, 14, pfiles);