VirtualBox

Changeset 6984 in vbox for trunk/src/VBox/Runtime/r3/win


Ignore:
Timestamp:
Feb 18, 2008 10:50:55 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28175
Message:

IPRT:

Bugfix for RTFILE_O_VALID_MASK, did not recognize RTFILE_O_DENY_NOT_DELETE.

Added RTFILE_O_NOT_CONTENT_INDEXED for opening / creating files without the indexing bit of Windows Indexing Service.

File:
1 edited

Legend:

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

    r6971 r6984  
    233233     * Turn off indexing of directory through Windows Indexing Service
    234234     */
    235     if (   (dwCreationDisposition == OPEN_ALWAYS)
    236         || (dwCreationDisposition == CREATE_NEW)
    237         || (dwCreationDisposition == CREATE_ALWAYS))
     235    if (fOpen & RTFILE_O_NOT_CONTENT_INDEXED)
    238236    {
    239237        if (FALSE == SetFileAttributes(pszFilename, FILE_ATTRIBUTE_NOT_CONTENT_INDEXED))
     
    264262     * Turn off indexing of directory through Windows Indexing Service
    265263     */
    266     if (   (dwCreationDisposition == OPEN_ALWAYS)
    267         || (dwCreationDisposition == CREATE_NEW)
    268         || (dwCreationDisposition == CREATE_ALWAYS))
     264    if (fOpen & RTFILE_O_NOT_CONTENT_INDEXED)
    269265    {
    270266        if (FALSE == SetFileAttributesW(pwszFilename, FILE_ATTRIBUTE_NOT_CONTENT_INDEXED))
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