VirtualBox

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

check if the path really exists

File:
1 edited

Legend:

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

    r977 r2282  
    238238    Utf8Str hostPath = Utf8Str (mHostPath);
    239239    char hostPathFull [RTPATH_MAX];
    240     int vrc = RTPathReal (hostPath, hostPathFull, sizeof (hostPathFull));
     240    int vrc = RTPathExists(hostPath) ? RTPathReal (hostPath, hostPathFull, sizeof (hostPathFull))
     241                                     : VERR_PATH_NOT_FOUND;
    241242    if (VBOX_SUCCESS (vrc))
    242243    {
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