VirtualBox

Ignore:
Timestamp:
Sep 25, 2009 3:04:23 PM (15 years ago)
Author:
vboxsync
Message:

Main/MediumImpl: make sure that host drive locations do not get modified in any way

File:
1 edited

Legend:

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

    r23327 r23337  
    898898
    899899    /* cannot be a host drive */
    900     m->hostDrive = false;
     900    m->hostDrive = FALSE;
    901901
    902902    /* No storage unit is created yet, no need to queryInfo() */
     
    996996
    997997    /* cannot be a host drive */
    998     m->hostDrive = false;
     998    m->hostDrive = FALSE;
    999999
    10001000    /* remember the open mode (defaults to ReadWrite) */
     
    10921092
    10931093    /* assume not a host drive */
    1094     m->hostDrive = false;
     1094    m->hostDrive = FALSE;
    10951095
    10961096    /* optional */
     
    33663366    bool isImport = m->format.isNull();
    33673367
    3368     if (isImport ||
    3369         (m->formatObj->capabilities() & MediumFormatCapabilities_File))
     3368    if (   isImport
     3369        || (   (m->formatObj->capabilities() & MediumFormatCapabilities_File)
     3370            && !m->hostDrive))
    33703371    {
    33713372        Guid id;
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