mirror of
https://github.com/debauchee/barrier.git
synced 2026-11-25 05:12:16 +08:00
Merge 1.4.1 r601:602 into trunk
This commit is contained in:
@@ -118,7 +118,12 @@ CArchAppUtilWindows::getServiceArgs() const
|
||||
i++;
|
||||
}
|
||||
else {
|
||||
argBuf << " " << __argv[i];
|
||||
if (strchr(arg, ' ') != NULL) {
|
||||
// surround argument with quotes if it contains a space
|
||||
argBuf << " \"" << arg << "\"";
|
||||
} else {
|
||||
argBuf << " " << arg;
|
||||
}
|
||||
}
|
||||
}
|
||||
return argBuf.str();
|
||||
|
||||
Reference in New Issue
Block a user