mirror of https://github.com/BOINC/boinc.git
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:
parent
f3f9a19d23
commit
b8b768fbf6
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue