VirtualBox

Changeset 49078 in vbox for trunk/src


Ignore:
Timestamp:
Oct 14, 2013 2:28:52 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89885
Message:

dir-win.cpp/RTDirCreate: Aaaaaaaaaaaaaaaaarg!!!!!!!!!!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/dir-win.cpp

    r48935 r49078  
    7373             * Turn off indexing of directory through Windows Indexing Service
    7474             */
    75             if (RT_SUCCESS(rc))
     75            /** @todo This FILE_ATTRIBUTE_NOT_CONTENT_INDEXED hack (for .VDI files,
     76             *        really) may cause failures on samba shares.  That really sweet and
     77             *        need to be addressed differently.  We shouldn't be doing this
     78             *        unless the caller actually asks for it, must less returning failure,
     79             *        for crying out loud!  This is only important a couple of places in
     80             *        main, if important is the right way to put it... */
     81            if (   RT_SUCCESS(rc)
     82                && !(fCreate & RTDIRCREATE_FLAGS_NOT_CONTENT_INDEXED_DONT_SET))
    7683            {
    77                 if (SetFileAttributesW((LPCWSTR)pwszString, FILE_ATTRIBUTE_NOT_CONTENT_INDEXED))
     84                if (   SetFileAttributesW((LPCWSTR)pwszString, FILE_ATTRIBUTE_NOT_CONTENT_INDEXED)
     85                    || (fCreate & RTDIRCREATE_FLAGS_NOT_CONTENT_INDEXED_NOT_CRITICAL) )
    7886                    rc = VINF_SUCCESS;
    7987                else
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette