mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
fix backslashes in quotes (windows), fixes VST scan
This commit is contained in:
parent
847afa3f64
commit
e09c62052d
1 changed files with 3 additions and 6 deletions
|
|
@ -363,13 +363,10 @@ SystemExec::make_wargs(char **a) {
|
|||
char **tmp = ++a;
|
||||
while (tmp && *tmp) {
|
||||
wa.append(" \"");
|
||||
std::string arg(*tmp);
|
||||
size_t start_pos = 0;
|
||||
while((start_pos = arg.find("\\", start_pos)) != std::string::npos) {
|
||||
arg.replace(start_pos, 1, "\\\\");
|
||||
start_pos += 2;
|
||||
wa.append(*tmp);
|
||||
if (strlen(*tmp) > 0 && (*tmp)[strlen(*tmp) - 1] == '\\') {
|
||||
wa.append("\\")
|
||||
}
|
||||
wa.append(arg);
|
||||
wa.append("\"");
|
||||
tmp++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue