mirror of https://github.com/BOINC/boinc.git
- VBOX: Clean up version string.
This commit is contained in:
parent
78ed97fd84
commit
f57f32fd0b
|
@ -7960,3 +7960,9 @@ Rom 28 Dec 2012
|
|||
|
||||
samples\vboxwrapper\
|
||||
vbox.cpp
|
||||
|
||||
Rom 28 Dec 2012
|
||||
- VBOX: Clean up version string.
|
||||
|
||||
samples\vboxwrapper\
|
||||
vbox.cpp
|
||||
|
|
|
@ -215,6 +215,18 @@ int VBOX_VM::initialize() {
|
|||
command = "--version ";
|
||||
vbm_popen(command, output, "version check");
|
||||
|
||||
#ifdef _WIN32
|
||||
// Remove \r or \n from the output spew
|
||||
string::iterator iter = output.begin();
|
||||
while (iter != output.end()) {
|
||||
if (*iter == '\r' || *iter == '\n') {
|
||||
iter = output.erase(iter);
|
||||
} else {
|
||||
++iter;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
virtualbox_version = "VirtualBox " + output;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue