VBOX: When checking to see if a VM is registered, take into account the return value of vboxmanage.

This commit is contained in:
Rom Walton 2014-01-15 12:59:27 -05:00
parent 5e92b6c7d7
commit 932cdbf84f
1 changed files with 1 additions and 1 deletions

View File

@ -1599,7 +1599,7 @@ bool VBOX_VM::is_registered() {
retval = vbm_popen(command, output, "registration", false, false);
// Handle explicit cases first
if (output.find(needle.c_str()) != string::npos) {
if (!retval && output.find(needle.c_str()) != string::npos) {
return true;
}
if (output.find("VBOX_E_OBJECT_NOT_FOUND") != string::npos) {