VirtualBox

Changeset 32437 in vbox


Ignore:
Timestamp:
Sep 13, 2010 8:52:55 AM (14 years ago)
Author:
vboxsync
Message:

Main/Medium: fix medium type check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MediumImpl.cpp

    r32063 r32437  
    36613661
    36623662    /* Lock the medium, which makes the behavior much more consistent */
    3663     if (uOpenFlags & (VD_OPEN_FLAGS_READONLY || VD_OPEN_FLAGS_SHAREABLE))
     3663    if (uOpenFlags & (VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_SHAREABLE))
    36643664        rc = LockRead(NULL);
    36653665    else
     
    39203920
    39213921    HRESULT rc2;
    3922     if (uOpenFlags & (VD_OPEN_FLAGS_READONLY || VD_OPEN_FLAGS_SHAREABLE))
     3922    if (uOpenFlags & (VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_SHAREABLE))
    39233923        rc2 = UnlockRead(NULL);
    39243924    else
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