VirtualBox

Ignore:
Timestamp:
Jan 30, 2012 12:41:49 PM (13 years ago)
Author:
vboxsync
Message:

GuestCtrl/Main: Fixed another typo (return value), fixed handling of 0-byte files from host.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestCtrlImplDir.cpp

    r39843 r39905  
    250250                break;
    251251
    252             case VERR_FILE_NOT_FOUND:
     252            case VERR_PATH_NOT_FOUND:
    253253                *aExists = FALSE;
    254254                break;
     
    497497                const char *pszFsType = stdOut[0].GetString("ftype");
    498498                if (!pszFsType) /* Attribute missing? */
    499                      rc = VERR_NOT_FOUND;
     499                     rc = VERR_PATH_NOT_FOUND;
    500500                if (   RT_SUCCESS(rc)
    501501                    && strcmp(pszFsType, "d")) /* Directory? */
    502502                {
    503                      rc = VERR_FILE_NOT_FOUND;
     503                     rc = VERR_PATH_NOT_FOUND;
    504504                     /* This is not critical for Main, so don't set hr --
    505505                      * we will take care of rc then. */
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