VirtualBox

Changeset 69631 in vbox


Ignore:
Timestamp:
Nov 9, 2017 3:56:04 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
118991
Message:

fatvfs: don't match or return volume lables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/fs/fatvfs.cpp

    r69623 r69631  
    27382738             */
    27392739            else if (   fIs8Dot3Name
     2740                     && !(paEntries[iEntry].Entry.fAttrib & FAT_ATTR_VOLUME)
    27402741                     && memcmp(paEntries[iEntry].Entry.achName, szName8Dot3, sizeof(paEntries[iEntry].Entry.achName)) == 0)
    27412742            {
     
    27482749            else if (   cwcName != 0
    27492750                     && idNextSlot == 0
     2751                     && !(paEntries[iEntry].Entry.fAttrib & FAT_ATTR_VOLUME)
    27502752                     && rtFsFatDir_CalcChecksum(&paEntries[iEntry].Entry) == bChecksum
    27512753                     && RTUtf16ICmpUtf8(wszName, pszEntry) == 0)
     
    41504152            }
    41514153            /*
    4152              * Got a regular directory entry.  Try return it to the caller.
     4154             * Got a regular directory entry.  Try return it to the caller if not volume label.
    41534155             */
    4154             else
     4156            else if (!(paEntries[iEntry].Entry.fAttrib & FAT_ATTR_VOLUME))
    41554157            {
    41564158                /* Do the length calc and check for overflows. */
     
    42134215                return rc;
    42144216            }
     4217            else
     4218                cwcName = 0;
    42154219        }
    42164220
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