comparison plugin/LADSPAPluginFactory.cpp @ 1221:a1b97df9962e 3.0-integration

Merge from branch msvc2015_64
author Chris Cannam
date Thu, 20 Oct 2016 11:16:22 +0100
parents 6b847a59d908
children 75aefcc9f07d
comparison
equal deleted inserted replaced
1215:f50ded4b951c 1221:a1b97df9962e
577 path.replace(f, 5, home); 577 path.replace(f, 5, home);
578 } 578 }
579 } 579 }
580 580
581 #ifdef _WIN32 581 #ifdef _WIN32
582 char *pfiles = getenv("ProgramFiles"); 582 const char *pfiles = getenv("ProgramFiles");
583 if (!pfiles) pfiles = "C:\\Program Files"; 583 if (!pfiles) pfiles = "C:\\Program Files";
584 { 584 {
585 std::string::size_type f; 585 std::string::size_type f;
586 while ((f = path.find("%ProgramFiles%")) != std::string::npos && 586 while ((f = path.find("%ProgramFiles%")) != std::string::npos &&
587 f < path.length()) { 587 f < path.length()) {