VirtualBox

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


Ignore:
Timestamp:
Jul 15, 2009 3:27:07 PM (15 years ago)
Author:
vboxsync
Message:

nitpicking.

File:
1 edited

Legend:

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

    r21582 r21616  
    206206            break;
    207207        case RTFILE_O_WRITE:
    208             dwDesiredAccess = (fOpen & RTFILE_O_APPEND)?
    209                                   FILE_GENERIC_WRITE & ~FILE_WRITE_DATA:
    210                                   FILE_GENERIC_WRITE;
     208            dwDesiredAccess = fOpen & RTFILE_O_APPEND
     209                            ? FILE_GENERIC_WRITE & ~FILE_WRITE_DATA
     210                            : FILE_GENERIC_WRITE;
    211211            break;
    212212        case RTFILE_O_READWRITE:
    213             dwDesiredAccess = (fOpen & RTFILE_O_APPEND)?
    214                                   FILE_GENERIC_READ | (FILE_GENERIC_WRITE & ~FILE_WRITE_DATA):
    215                                   FILE_GENERIC_READ | FILE_GENERIC_WRITE;
     213            dwDesiredAccess = fOpen & RTFILE_O_APPEND
     214                            ? FILE_GENERIC_READ | (FILE_GENERIC_WRITE & ~FILE_WRITE_DATA)
     215                            : FILE_GENERIC_READ | FILE_GENERIC_WRITE;
    216216            break;
    217217        default:
     
    223223    switch (fOpen & RTFILE_O_ACCESS_ATTR_MASK)
    224224    {
    225         case RTFILE_O_ACCESS_ATTR_READ:      dwDesiredAccess |= FILE_READ_ATTRIBUTES | SYNCHRONIZE; break;
     225        case RTFILE_O_ACCESS_ATTR_READ:      dwDesiredAccess |= FILE_READ_ATTRIBUTES  | SYNCHRONIZE; break;
    226226        case RTFILE_O_ACCESS_ATTR_WRITE:     dwDesiredAccess |= FILE_WRITE_ATTRIBUTES | SYNCHRONIZE; break;
    227227        case RTFILE_O_ACCESS_ATTR_READWRITE: dwDesiredAccess |= FILE_READ_ATTRIBUTES | FILE_WRITE_ATTRIBUTES | SYNCHRONIZE; break;
     
    230230            switch (fOpen & RTFILE_O_ACCESS_MASK)
    231231            {
    232                 case RTFILE_O_READ:      dwDesiredAccess |= FILE_READ_ATTRIBUTES | SYNCHRONIZE; break;
    233                 case RTFILE_O_WRITE:     dwDesiredAccess |= FILE_WRITE_ATTRIBUTES | SYNCHRONIZE; break;
    234                 case RTFILE_O_READWRITE: dwDesiredAccess |= FILE_READ_ATTRIBUTES | FILE_WRITE_ATTRIBUTES | SYNCHRONIZE; break;
     232                case RTFILE_O_READ:          dwDesiredAccess |= FILE_READ_ATTRIBUTES | SYNCHRONIZE; break;
     233                case RTFILE_O_WRITE:         dwDesiredAccess |= FILE_WRITE_ATTRIBUTES | SYNCHRONIZE; break;
     234                case RTFILE_O_READWRITE:     dwDesiredAccess |= FILE_READ_ATTRIBUTES | FILE_WRITE_ATTRIBUTES | SYNCHRONIZE; break;
    235235                default:
    236236                    AssertMsgFailed(("Impossible fOpen=%#x\n", fOpen));
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