VirtualBox

Changeset 2272 in vbox for trunk


Ignore:
Timestamp:
Apr 20, 2007 1:14:32 PM (18 years ago)
Author:
vboxsync
Message:

RTPathReal presumes that the path exists!

File:
1 edited

Legend:

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

    r2084 r2272  
    18291829#ifndef __DARWIN__
    18301830        char szPathReal[256];
    1831         if (RT_SUCCESS(RTPathReal(pszDevice, szPathReal, sizeof(szPathReal))))
     1831        if (   RTPathExists(pszDevice)
     1832            && RT_SUCCESS(RTPathReal(pszDevice, szPathReal, sizeof(szPathReal))))
    18321833            pszDevice = szPathReal;
    18331834        pThis->FileDevice = NIL_RTFILE;
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