equal
deleted
inserted
replaced
224 TBool changed; // What is this for? |
224 TBool changed; // What is this for? |
225 TInt err = iDrive.Connect(aDrive, changed); |
225 TInt err = iDrive.Connect(aDrive, changed); |
226 if (err == KErrNone) |
226 if (err == KErrNone) |
227 { |
227 { |
228 TPckg<TLocalDriveCapsV2> capsBuf(iCaps); |
228 TPckg<TLocalDriveCapsV2> capsBuf(iCaps); |
229 LeaveIfErr(iDrive.Caps(capsBuf), _L("Opened drive %d but couldn't read caps"), aDrive); |
229 err = iDrive.Caps(capsBuf); |
|
230 if (err) |
|
231 { |
|
232 iDrive.Close(); |
|
233 if (aLeaveOnConnectErr) LeaveIfErr(err, _L("Opened drive %d but couldn't read caps"), aDrive); |
|
234 } |
230 } |
235 } |
231 else if (aLeaveOnConnectErr) |
236 else if (aLeaveOnConnectErr) |
232 { |
237 { |
233 LeaveIfErr(err, _L("Couldn't open drive %d"), aDrive); |
238 LeaveIfErr(err, _L("Couldn't open drive %d"), aDrive); |
234 } |
239 } |