VirtualBox

Changeset 6896 in vbox


Ignore:
Timestamp:
Feb 11, 2008 12:46:36 PM (17 years ago)
Author:
vboxsync
Message:

Shared folders: Bugfix for file properties assertion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp

    r6848 r6896  
    10071007            /* Query path information. */
    10081008            RTFSOBJINFO info;
     1009            memset (&info, 0, sizeof(RTFSOBJINFO));
    10091010
    10101011            rc = RTPathQueryInfo (pszFullPath, &info, RTFSOBJATTRADD_NOTHING);
     
    10561057            if (RT_SUCCESS(rc))
    10571058            {
    1058                 if (   BIT_FLAG(pParms->CreateFlags, SHFL_CF_DIRECTORY)
    1059                     && RTFS_IS_DIRECTORY(info.Attr.fMode))
     1059                if (BIT_FLAG(pParms->CreateFlags, SHFL_CF_DIRECTORY))
    10601060                {
    10611061                    rc = vbsfOpenDir (pszFullPath, pParms);
     1062
     1063                    /* The Windows driver sometimes reports files with the flag SHFL_CF_DIRECTORY,
     1064                       which actually isn't an error. */
     1065                    if (rc == VERR_NOT_A_DIRECTORY)
     1066                        rc = VINF_SUCCESS;
    10621067                }
    10631068                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