VirtualBox

Changeset 67493 in vbox for trunk/src


Ignore:
Timestamp:
Jun 20, 2017 10:23:42 AM (8 years ago)
Author:
vboxsync
Message:

HostDrivers/Support/win: translate the error when the VBoxDrv module cannot be unloaded to VERR_RESOURCE_BUSY

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPLib-win.cpp

    r66655 r67493  
    390390            {
    391391                dwErr = GetLastError();
    392                 AssertMsgFailed(("ControlService failed with dwErr=%Rwa. status=%d\n", dwErr, Status.dwCurrentState));
    393                 rc = RTErrConvertFromWin32(dwErr);
     392                if (   Status.dwCurrentState == SERVICE_STOP_PENDING
     393                    && dwErr == ERROR_SERVICE_CANNOT_ACCEPT_CTRL)
     394                    rc = VERR_RESOURCE_BUSY;    /* better than VERR_GENERAL_FAILURE */
     395                else
     396                {
     397                    AssertMsgFailed(("ControlService failed with dwErr=%Rwa. status=%d\n", dwErr, Status.dwCurrentState));
     398                    rc = RTErrConvertFromWin32(dwErr);
     399                }
    394400            }
    395401            CloseServiceHandle(hService);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette