Commit f57f32fd authored by Rom Walton's avatar Rom Walton Committed by Oliver Bock

- VBOX: Clean up version string.

parent 78ed97fd
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment