Changeset 5161 in vbox
- Timestamp:
- Oct 4, 2007 9:10:22 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 25057
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HardDiskImpl.cpp
r5122 r5161 4418 4418 vrc = VDCreate (pszFormat, VDError, this, &mContainer); 4419 4419 4420 if (VBOX_SUCCESS(vrc)) 4421 mFormat = Bstr (pszFormat); 4422 4420 4423 RTStrFree (pszFormat); 4421 4424 4422 4425 /* the format has been already checked for presence at this point */ 4423 4426 ComAssertRCBreak (vrc, rc = E_FAIL); 4424 4425 mFormat = Bstr (pszFormat);4426 4427 4427 4428 /* Call queryInformation() anyway (even if it will block), because … … 4880 4881 Guid id, parentId; 4881 4882 4882 /// @todo changed from VD_OPEN_FLAGS_READONLY to VD_OPEN_FLAGS_NORMAL, 4883 /// because otherwise registering a virtual harddisk which so far has no UUID will 4884 /// yield a null UUID. It cannot be added to a custom harddisk opened readonly, 4885 /// obviously. This of course changes locking behavior, but for now 4886 /// this is acceptable. A better solution needs to be found later. 4887 vrc = VDOpen (mContainer, location, VD_OPEN_FLAGS_NORMAL); 4883 vrc = VDOpen (mContainer, location, VD_OPEN_FLAGS_INFO); 4888 4884 if (VBOX_FAILURE (vrc)) 4889 4885 break;
Note:
See TracChangeset
for help on using the changeset viewer.