Changeset 33760 in vbox
- Timestamp:
- Nov 4, 2010 11:00:40 AM (14 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MediumImpl.cpp
r33757 r33760 4230 4230 break; 4231 4231 default: 4232 ComAssertFailed Throw(E_FAIL);4232 ComAssertFailedRet(VDTYPE_INVALID); 4233 4233 } 4234 4234 … … 4255 4255 break; 4256 4256 default: 4257 ComAssertFailed Throw(E_FAIL);4257 ComAssertFailedRet(DeviceType_Null); 4258 4258 } 4259 4259 -
trunk/src/VBox/Main/include/VirtualBoxBase.h
r33708 r33760 265 265 #define ComAssertComRCRetRC(rc) \ 266 266 do { ComAssertComRC(rc); if (!SUCCEEDED(rc)) return (rc); } while (0) 267 /** Special version of ComAssert that returns ret */ 268 #define ComAssertFailedRet(ret) \ 269 if (1) { ComAssertFailed(); { return (ret); } } else do {} while (0) 267 270 268 271
Note:
See TracChangeset
for help on using the changeset viewer.