mirror of https://github.com/BOINC/boinc.git
VBOX: When checking to see if a VM is registered, take into account the return value of vboxmanage.
This commit is contained in:
parent
5e92b6c7d7
commit
932cdbf84f
|
@ -1599,7 +1599,7 @@ bool VBOX_VM::is_registered() {
|
||||||
retval = vbm_popen(command, output, "registration", false, false);
|
retval = vbm_popen(command, output, "registration", false, false);
|
||||||
|
|
||||||
// Handle explicit cases first
|
// Handle explicit cases first
|
||||||
if (output.find(needle.c_str()) != string::npos) {
|
if (!retval && output.find(needle.c_str()) != string::npos) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (output.find("VBOX_E_OBJECT_NOT_FOUND") != string::npos) {
|
if (output.find("VBOX_E_OBJECT_NOT_FOUND") != string::npos) {
|
||||||
|
|
Loading…
Reference in New Issue