VBOX: Vboxsvc doesn't return error codes in the same format as vboxmanage. Special case vboxsvc error code RPC_S_SERVER_UNAVAILABLE.

This commit is contained in:
Rom Walton 2014-01-22 16:33:21 -05:00
parent f3f9a19d23
commit b8b768fbf6
1 changed files with 7 additions and 0 deletions

View File

@ -2719,6 +2719,13 @@ CLEANUP:
sscanf(errcode.c_str(), "%x", &retval);
}
// Is this a RPC_S_SERVER_UNAVAILABLE returned by vboxsvc?
if (!retval) {
if (output.find("RPC_S_SERVER_UNAVAILABLE") != string::npos) {
retval = RPC_S_SERVER_UNAVAILABLE;
}
}
// If something couldn't be found, just return ERR_FOPEN
if (!retval) retval = ERR_FOPEN;