Changeset 20977 in vbox for trunk/src/VBox/Main/MediumImpl.cpp
- Timestamp:
- Jun 26, 2009 2:38:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MediumImpl.cpp
r19239 r20977 75 75 AutoReadLock alock (this); 76 76 77 m.description.cloneTo (aDescription); 77 if (m.description.isEmpty()) 78 Bstr("").cloneTo(aDescription); 79 else 80 m.description.cloneTo (aDescription); 78 81 79 82 return S_OK; … … 199 202 AutoReadLock alock (this); 200 203 201 m.lastAccessError.cloneTo (aLastAccessError); 204 if (m.lastAccessError.isEmpty()) 205 Bstr("").cloneTo(aLastAccessError); 206 else 207 m.lastAccessError.cloneTo (aLastAccessError); 202 208 203 209 return S_OK; … … 969 975 /* if the image file is not accessible, it's not acceptable for the 970 976 * newly opened media so convert this into an error */ 971 if (!m.lastAccessError.is Null())977 if (!m.lastAccessError.isEmpty()) 972 978 rc = setError (VBOX_E_FILE_ERROR, Utf8Str (m.lastAccessError)); 973 979 }
Note:
See TracChangeset
for help on using the changeset viewer.