Changeset 27680 in vbox for trunk/src/VBox/Main
- Timestamp:
- Mar 24, 2010 6:28:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r27677 r27680 350 350 RTFILE f = NIL_RTFILE; 351 351 int vrc = RTFileOpen(&f, mData->m_strConfigFileFull.c_str(), RTFILE_O_READ | RTFILE_O_OPEN | RTFILE_O_DENY_NONE); 352 if ( (RT_SUCCESS(vrc) && !aOverride)352 if ( RT_SUCCESS(vrc) 353 353 || vrc == VERR_SHARING_VIOLATION 354 354 ) 355 355 { 356 rc = setError(VBOX_E_FILE_ERROR, 357 tr("Machine settings file '%s' already exists"), 358 mData->m_strConfigFileFull.raw()); 356 if (!aOverride) 357 { 358 rc = setError(VBOX_E_FILE_ERROR, 359 tr("Machine settings file '%s' already exists"), 360 mData->m_strConfigFileFull.raw()); 361 } 359 362 if (RT_SUCCESS(vrc)) 360 363 RTFileClose(f);
Note:
See TracChangeset
for help on using the changeset viewer.