VirtualBox

Changeset 37130 in vbox for trunk/src/VBox/Devices/USB


Ignore:
Timestamp:
May 18, 2011 11:38:38 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
71802
Message:

dev/usb/win: make the last error be printed properly on err

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/win/USBProxyDevice-win.cpp

    r35346 r37130  
    653653    else if (   rc == WAIT_FAILED
    654654             || (rc >= WAIT_ABANDONED_0 && rc < WAIT_ABANDONED_0 + cQueuedUrbs))
    655         AssertMsgFailed(("USB: WaitForMultipleObjects %d objects failed with rc=%d and last error %d\n", cQueuedUrbs, rc, GetLastError()));
     655    {
     656        /* do not use GetLastError() in AssertMsgFailed directly since the "real" err will be overwriten with the
     657         * RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); call encapsulated by AssertMsgFailed */
     658        DWORD winEr = GetLastError();
     659        AssertMsgFailed(("USB: WaitForMultipleObjects %d objects failed with rc=%d and last error %d\n", cQueuedUrbs, rc, winEr));
     660    }
    656661
    657662    return pUrb;
Note: See TracChangeset for help on using the changeset viewer.

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