Changeset 37132 in vbox for trunk/src/VBox
- Timestamp:
- May 18, 2011 12:04:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/USB/win/USBProxyDevice-win.cpp
r37130 r37132 311 311 } 312 312 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 } 314 319 315 320 return 0; … … 368 373 } 369 374 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 } 371 381 return 0; 372 382 } … … 397 407 } 398 408 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 } 400 415 return 0; 401 416 } … … 428 443 } 429 444 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 } 431 451 return RTErrConvertFromWin32(rc); 432 452 } … … 654 674 || (rc >= WAIT_ABANDONED_0 && rc < WAIT_ABANDONED_0 + cQueuedUrbs)) 655 675 { 656 /* do not use GetLastError() in AssertMsgFailed directly since the "real" err will be overwrit en with the676 /* do not use GetLastError() in AssertMsgFailed directly since the "real" err will be overwritten with the 657 677 * RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); call encapsulated by AssertMsgFailed */ 658 678 DWORD winEr = GetLastError(); … … 776 796 } 777 797 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 } 779 804 } 780 805
Note:
See TracChangeset
for help on using the changeset viewer.