VirtualBox

Ignore:
Timestamp:
Oct 27, 2008 2:04:18 PM (16 years ago)
Author:
vboxsync
Message:

Ported s2 branch (r37120:38456).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/VDIHDDCore.cpp

    r13427 r13580  
    14201420static int vdiSetOpenFlags(void *pBackendData, unsigned uOpenFlags)
    14211421{
    1422     LogFlowFunc(("pBackendData=%#p\n uOpenFlags=%#x", pBackendData, uOpenFlags));
     1422    LogFlowFunc(("pBackendData=%#p uOpenFlags=%#x\n", pBackendData, uOpenFlags));
    14231423    PVDIIMAGEDESC pImage = (PVDIIMAGEDESC)pBackendData;
    14241424    int rc;
    14251425    const char *pszFilename;
    14261426
    1427     /* Image must be opened and the new flags must be valid. Just readonly flag
    1428      * is supported. */
    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)))
    14301430    {
    14311431        rc = VERR_INVALID_PARAMETER;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette