Changeset 26171 in vbox for trunk/src/VBox/Main/AudioAdapterImpl.cpp
- Timestamp:
- Feb 2, 2010 8:37:36 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57185
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/AudioAdapterImpl.cpp
r26167 r26171 429 429 * @note Locks this object for writing. 430 430 */ 431 boolAudioAdapter::rollback()431 void AudioAdapter::rollback() 432 432 { 433 433 /* sanity */ 434 434 AutoCaller autoCaller(this); 435 AssertComRCReturn (autoCaller.rc(), false);435 AssertComRCReturnVoid(autoCaller.rc()); 436 436 437 437 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 438 438 439 bool changed = false; 440 441 if (mData.isBackedUp()) 442 { 443 /* we need to check all data to see whether anything will be changed 444 * after rollback */ 445 changed = mData.hasActualChanges(); 446 mData.rollback(); 447 } 448 449 return changed; 439 mData.rollback(); 450 440 } 451 441
Note:
See TracChangeset
for help on using the changeset viewer.