VirtualBox

Ignore:
Timestamp:
May 13, 2011 10:58:58 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
71702
Message:

usb: correct assertions

Location:
trunk/src/VBox/HostDrivers/VBoxUSB/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/cmn/VBoxUsbTool.cpp

    r37047 r37065  
    238238
    239239    NTSTATUS Status = VBoxDrvToolIoPostSync(pDevObj, pIrp);
    240     Assert(NT_SUCCESS(Status));
     240    Assert(NT_SUCCESS(Status) || Status == STATUS_NOT_SUPPORTED);
    241241    if (NT_SUCCESS(Status))
    242242    {
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/lib/VBoxUsbLib-win.cpp

    r37064 r37065  
    740740    {
    741741        DWORD winEr = GetLastError();
    742         AssertMsgFailed((__FUNCTION__": DeviceIoControl failed winEr (%d)\n", winEr));
     742        AssertMsg(winEr == ERROR_DEVICE_NOT_CONNECTED, (__FUNCTION__": DeviceIoControl failed winEr (%d)\n", winEr));
    743743        return VERR_GENERAL_FAILURE;
    744744    }
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