Changeset 7277 in vbox for trunk/src/VBox/Main
- Timestamp:
- Mar 4, 2008 2:12:17 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28615
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r7207 r7277 760 760 rc = CFGMR3InsertString(pCfg, "Path", psz); RC_CHECK(); 761 761 STR_FREE(); 762 rc = CFGMR3InsertString(pCfg, "Format", "VMDK"); RC_CHECK(); 762 763 } 763 764 else if (hddType == HardDiskStorageType_CustomHardDisk) -
trunk/src/VBox/Main/HardDiskImpl.cpp
r7207 r7277 3381 3381 3382 3382 /* initialize the container */ 3383 int vrc = VDCreate ( "VMDK",VDError, this, &mContainer);3383 int vrc = VDCreate (VDError, this, &mContainer); 3384 3384 ComAssertRCRet (vrc, E_FAIL); 3385 3385 … … 4049 4049 /// obviously. This of course changes locking behavior, but for now 4050 4050 /// this is acceptable. A better solution needs to be found later. 4051 vrc = VDOpen (mContainer, filePath, VD_OPEN_FLAGS_NORMAL);4051 vrc = VDOpen (mContainer, "VMDK", filePath, VD_OPEN_FLAGS_NORMAL); 4052 4052 if (VBOX_FAILURE (vrc)) 4053 4053 break; … … 4316 4316 4317 4317 /* initialize the container */ 4318 vrc = VDCreate ( Utf8Str (mFormat),VDError, this, &mContainer);4318 vrc = VDCreate (VDError, this, &mContainer); 4319 4319 if (VBOX_FAILURE (vrc)) 4320 4320 { … … 4417 4417 break; 4418 4418 } 4419 mFormat = Bstr (pszFormat); 4420 RTStrFree (pszFormat); 4419 4421 4420 4422 /* Create the corresponding container. */ 4421 vrc = VDCreate (pszFormat, VDError, this, &mContainer); 4422 4423 if (VBOX_SUCCESS(vrc)) 4424 mFormat = Bstr (pszFormat); 4425 4426 RTStrFree (pszFormat); 4423 vrc = VDCreate (VDError, this, &mContainer); 4427 4424 4428 4425 /* the format has been already checked for presence at this point */ … … 4885 4882 Guid id, parentId; 4886 4883 4887 vrc = VDOpen (mContainer, location, VD_OPEN_FLAGS_INFO);4884 vrc = VDOpen (mContainer, Utf8Str (mFormat), location, VD_OPEN_FLAGS_INFO); 4888 4885 if (VBOX_FAILURE (vrc)) 4889 4886 break; … … 5083 5080 5084 5081 /* initialize the container */ 5085 int vrc = VDCreate ( "VHD",VDError, this, &mContainer);5082 int vrc = VDCreate (VDError, this, &mContainer); 5086 5083 ComAssertRCRet (vrc, E_FAIL); 5087 5084 … … 5749 5746 /// obviously. This of course changes locking behavior, but for now 5750 5747 /// this is acceptable. A better solution needs to be found later. 5751 vrc = VDOpen (mContainer, filePath, VD_OPEN_FLAGS_NORMAL);5748 vrc = VDOpen (mContainer, "VHD", filePath, VD_OPEN_FLAGS_NORMAL); 5752 5749 if (VBOX_FAILURE (vrc)) 5753 5750 break;
Note:
See TracChangeset
for help on using the changeset viewer.