VirtualBox

Changeset 78282 in vbox for trunk/src


Ignore:
Timestamp:
Apr 24, 2019 5:23:28 PM (6 years ago)
Author:
vboxsync
Message:

winnt/vboxsf: Simplified file attribute conversion and made sure the result is never zero. [fix] bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/SharedFolders/driver/vbsfhlp.c

    r78280 r78282  
    6262    AssertCompile((RTFS_DOS_NT_ENCRYPTED           >> RTFS_DOS_SHIFT) == FILE_ATTRIBUTE_ENCRYPTED);
    6363
    64     uint32_t fNtAttribs = (fIprtMode & (RTFS_DOS_MASK_NT & ~(RTFS_DOS_NT_OFFLINE | RTFS_DOS_NT_DEVICE)) >> RTFS_DOS_SHIFT);
     64    uint32_t fNtAttribs = (fIprtMode & (RTFS_DOS_MASK_NT & ~(RTFS_DOS_NT_OFFLINE | RTFS_DOS_NT_DEVICE))) >> RTFS_DOS_SHIFT;
    6565    return fNtAttribs ? fNtAttribs : FILE_ATTRIBUTE_NORMAL;
    6666}
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