VirtualBox

Ignore:
Timestamp:
Feb 1, 2011 1:00:24 PM (14 years ago)
Author:
vboxsync
Message:

VMM: Replace most VERR_VERSION_MISMATCH by more specific error statuses. Translating the errors returned by device, driver and USB device constructors into specific ones for the benefit of old extension pack and misc use of the status.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PDMUsb.cpp

    r35346 r35810  
    637637    }
    638638    else
     639    {
    639640        AssertMsgFailed(("Failed to construct '%s'/%d! %Rra\n", pUsbIns->pReg->szName, pUsbIns->iInstance, rc));
     641        if (rc == VERR_VERSION_MISMATCH)
     642            rc = VERR_PDM_DRIVER_VERSION_MISMATCH;
     643    }
    640644    if (fAtRuntime)
    641645        pdmR3UsbDestroyDevice(pVM, pUsbIns);
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