diff --git a/samples/vboxwrapper/vbox.cpp b/samples/vboxwrapper/vbox.cpp index f2cd054a6b..ed74624842 100644 --- a/samples/vboxwrapper/vbox.cpp +++ b/samples/vboxwrapper/vbox.cpp @@ -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;