- Timestamp:
- Jul 18, 2008 5:08:47 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HardDiskImpl.cpp
r10715 r10752 4935 4935 4936 4936 vrc = VDGetUuid (mContainer, 0, id.ptr()); 4937 if (VBOX_FAILURE (vrc) )4937 if (VBOX_FAILURE (vrc) && vrc != VERR_NOT_SUPPORTED) 4938 4938 break; 4939 vrc = VDGetParentUuid (mContainer, 0, parentId.ptr());4940 if (VBOX_FAILURE (vrc))4941 break;4942 4939 4943 4940 if (!mId.isEmpty()) 4944 4941 { 4945 4942 /* check that the actual UUID of the image matches the stored UUID */ 4946 if ( mId != id)4943 if (VBOX_SUCCESS(vrc) && (mId != id)) 4947 4944 { 4948 4945 errMsg = Utf8StrFmt ( … … 4955 4952 else 4956 4953 { 4957 /* assgn an UUID read from the image file */ 4958 mId = id; 4959 } 4954 /* assign an UUID read from the image file */ 4955 if (VBOX_SUCCESS(vrc)) 4956 mId = id; 4957 else 4958 { 4959 /* Create a UUID on our own. */ 4960 vrc = RTUuidCreate(mId.ptr()); 4961 if (VBOX_FAILURE(vrc)) 4962 break; 4963 } 4964 } 4965 4966 4967 vrc = VDGetParentUuid (mContainer, 0, parentId.ptr()); 4968 if (VBOX_FAILURE (vrc)) 4969 break; 4960 4970 4961 4971 if (mParent)
Note:
See TracChangeset
for help on using the changeset viewer.