Changeset 13580 in vbox for trunk/src/VBox/Devices/Storage/VDIHDDCore.cpp
- Timestamp:
- Oct 27, 2008 2:04:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VDIHDDCore.cpp
r13427 r13580 1420 1420 static int vdiSetOpenFlags(void *pBackendData, unsigned uOpenFlags) 1421 1421 { 1422 LogFlowFunc(("pBackendData=%#p \n uOpenFlags=%#x", pBackendData, uOpenFlags));1422 LogFlowFunc(("pBackendData=%#p uOpenFlags=%#x\n", pBackendData, uOpenFlags)); 1423 1423 PVDIIMAGEDESC pImage = (PVDIIMAGEDESC)pBackendData; 1424 1424 int rc; 1425 1425 const char *pszFilename; 1426 1426 1427 /* Image must be opened and the new flags must be valid. Just readonly flag1428 * i ssupported. */1429 if (!pImage || uOpenFlags & ~VD_OPEN_FLAGS_READONLY)1427 /* Image must be opened and the new flags must be valid. Just readonly and 1428 * info flags are supported. */ 1429 if (!pImage || (uOpenFlags & ~(VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_INFO))) 1430 1430 { 1431 1431 rc = VERR_INVALID_PARAMETER;
Note:
See TracChangeset
for help on using the changeset viewer.