Changeset 103532 in vbox for trunk/src/VBox/Main/src-all
- Timestamp:
- Feb 22, 2024 2:05:31 PM (13 months ago)
- svn:sync-xref-src-repo-rev:
- 161878
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/NvramStoreImpl.cpp
r99739 r103532 380 380 { 381 381 #ifndef VBOX_COM_INPROC 382 /* the machine needs to be mutable */383 AutoMutableStateDependency adep(m->pParent);384 if (FAILED(adep.hrc())) return adep.hrc();385 386 382 Utf8Str strPath; 387 383 NvramStore::getNonVolatileStorageFile(strPath); … … 418 414 { 419 415 m->pUefiVarStore.queryInterfaceTo(aUefiVarStore.asOutParam()); 420 421 /* Mark the NVRAM store as potentially modified. */ 422 m->pParent->i_setModified(Machine::IsModified_NvramStore); 416 /* The "modified" state is handled by i_retainUefiVarStore. */ 423 417 } 424 418 … … 1066 1060 HRESULT NvramStore::i_retainUefiVarStore(PRTVFS phVfs, bool fReadonly) 1067 1061 { 1068 /* the machine needs to be mutable */1069 AutoMutableStateDependency adep( m->pParent);1062 /* the machine needs to be mutable unless fReadonly is set */ 1063 AutoMutableStateDependency adep(fReadonly ? NULL : m->pParent); 1070 1064 if (FAILED(adep.hrc())) return adep.hrc(); 1071 1065
Note:
See TracChangeset
for help on using the changeset viewer.