diff --git a/samples/vboxwrapper/vbox.cpp b/samples/vboxwrapper/vbox.cpp index b5a9bf5000..203732506e 100644 --- a/samples/vboxwrapper/vbox.cpp +++ b/samples/vboxwrapper/vbox.cpp @@ -2927,10 +2927,8 @@ CLEANUP: #endif // Is this a RPC_S_SERVER_UNAVAILABLE returned by vboxmanage? - if (!retval) { - if (output.find("RPC_S_SERVER_UNAVAILABLE") != string::npos) { - retval = RPC_S_SERVER_UNAVAILABLE; - } + if (output.find("RPC_S_SERVER_UNAVAILABLE") != string::npos) { + retval = RPC_S_SERVER_UNAVAILABLE; } return retval;