VirtualBox

Changeset 37132 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 18, 2011 12:04:54 PM (14 years ago)
Author:
vboxsync
Message:

dev/usb/win: ditto

File:
1 edited

Legend:

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

    r37130 r37132  
    311311    }
    312312    else
    313         AssertMsgFailed(("lasterr=%d\n", GetLastError()));
     313    {
     314        /* do not use GetLastError() in AssertMsgFailed directly since the "real" err will be overwritten with the
     315         * RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); call encapsulated by AssertMsgFailed */
     316        DWORD winEr = GetLastError();
     317        AssertMsgFailed(("lasterr=%d\n", winEr));
     318    }
    314319
    315320    return 0;
     
    368373    }
    369374    else
    370         AssertMsgFailed(("lasterr=%d\n", GetLastError()));
     375    {
     376        /* do not use GetLastError() in AssertMsgFailed directly since the "real" err will be overwritten with the
     377         * RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); call encapsulated by AssertMsgFailed */
     378        DWORD winEr = GetLastError();
     379        AssertMsgFailed(("lasterr=%d\n", winEr));
     380    }
    371381    return 0;
    372382}
     
    397407    }
    398408    else
    399         AssertMsgFailed(("lasterr=%d\n", GetLastError()));
     409    {
     410        /* do not use GetLastError() in AssertMsgFailed directly since the "real" err will be overwritten with the
     411         * RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); call encapsulated by AssertMsgFailed */
     412        DWORD winEr = GetLastError();
     413        AssertMsgFailed(("lasterr=%d\n", winEr));
     414    }
    400415    return 0;
    401416}
     
    428443    }
    429444    else
    430         AssertMsgFailed(("lasterr=%d\n", GetLastError()));
     445    {
     446        /* do not use GetLastError() in AssertMsgFailed directly since the "real" err will be overwritten with the
     447         * RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); call encapsulated by AssertMsgFailed */
     448        DWORD winEr = GetLastError();
     449        AssertMsgFailed(("lasterr=%d\n", winEr));
     450    }
    431451    return RTErrConvertFromWin32(rc);
    432452}
     
    654674             || (rc >= WAIT_ABANDONED_0 && rc < WAIT_ABANDONED_0 + cQueuedUrbs))
    655675    {
    656         /* do not use GetLastError() in AssertMsgFailed directly since the "real" err will be overwriten with the
     676        /* do not use GetLastError() in AssertMsgFailed directly since the "real" err will be overwritten with the
    657677         * RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); call encapsulated by AssertMsgFailed */
    658678        DWORD winEr = GetLastError();
     
    776796    }
    777797    else
    778         AssertMsgFailed(("lasterr=%d\n", GetLastError()));
     798    {
     799        /* do not use GetLastError() in AssertMsgFailed directly since the "real" err will be overwritten with the
     800         * RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); call encapsulated by AssertMsgFailed */
     801        DWORD winEr = GetLastError();
     802        AssertMsgFailed(("lasterr=%d\n", winEr));
     803    }
    779804}
    780805
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