equal
deleted
inserted
replaced
91 LOG(CIoLog::Printf(_L("Attempting to create file 0x%08x (\"%S\")"), this, &aName)); |
91 LOG(CIoLog::Printf(_L("Attempting to create file 0x%08x (\"%S\")"), this, &aName)); |
92 switch (aMode) |
92 switch (aMode) |
93 { |
93 { |
94 case RIoFile::ERead: |
94 case RIoFile::ERead: |
95 { |
95 { |
96 User::LeaveIfError(iFile.Open(aFs, aName, EFileRead)); |
96 User::LeaveIfError(iFile.Open(aFs, aName, EFileRead | EFileShareReadersOnly)); |
97 break; |
97 break; |
98 } |
98 } |
99 case RIoFile::EOverwrite: |
99 case RIoFile::EOverwrite: |
100 { |
100 { |
101 User::LeaveIfError(iFile.Replace(aFs, aName, EFileWrite)); |
101 User::LeaveIfError(iFile.Replace(aFs, aName, EFileWrite)); |