VirtualBox

儲存庫 vbox 的更動 49078


忽略:
時間撮記:
2013-10-14 上午02:28:52 (11 年 以前)
作者:
vboxsync
訊息:

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

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • 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
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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