Changeset 21616 in vbox for trunk/src/VBox/Runtime/r3/win
- Timestamp:
- Jul 15, 2009 3:27:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/fileio-win.cpp
r21582 r21616 206 206 break; 207 207 case RTFILE_O_WRITE: 208 dwDesiredAccess = (fOpen & RTFILE_O_APPEND)?209 FILE_GENERIC_WRITE & ~FILE_WRITE_DATA:210 208 dwDesiredAccess = fOpen & RTFILE_O_APPEND 209 ? FILE_GENERIC_WRITE & ~FILE_WRITE_DATA 210 : FILE_GENERIC_WRITE; 211 211 break; 212 212 case RTFILE_O_READWRITE: 213 dwDesiredAccess = (fOpen & RTFILE_O_APPEND)?214 FILE_GENERIC_READ | (FILE_GENERIC_WRITE & ~FILE_WRITE_DATA):215 213 dwDesiredAccess = fOpen & RTFILE_O_APPEND 214 ? FILE_GENERIC_READ | (FILE_GENERIC_WRITE & ~FILE_WRITE_DATA) 215 : FILE_GENERIC_READ | FILE_GENERIC_WRITE; 216 216 break; 217 217 default: … … 223 223 switch (fOpen & RTFILE_O_ACCESS_ATTR_MASK) 224 224 { 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; 226 226 case RTFILE_O_ACCESS_ATTR_WRITE: dwDesiredAccess |= FILE_WRITE_ATTRIBUTES | SYNCHRONIZE; break; 227 227 case RTFILE_O_ACCESS_ATTR_READWRITE: dwDesiredAccess |= FILE_READ_ATTRIBUTES | FILE_WRITE_ATTRIBUTES | SYNCHRONIZE; break; … … 230 230 switch (fOpen & RTFILE_O_ACCESS_MASK) 231 231 { 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; 235 235 default: 236 236 AssertMsgFailed(("Impossible fOpen=%#x\n", fOpen));
Note:
See TracChangeset
for help on using the changeset viewer.