equal
deleted
inserted
replaced
44 |
44 |
45 /** |
45 /** |
46 Close the interface to the media driver |
46 Close the interface to the media driver |
47 */ |
47 */ |
48 void TDriveInterface::Close() |
48 void TDriveInterface::Close() |
49 { |
49 { |
50 if((iMount != NULL) && (iMount->LocalDrive() != NULL)) |
50 if((iMount != NULL) && (iMount->LocalDrive() != NULL)) |
51 { |
51 { |
52 ASSERT(iMount->LocalDrive()->Mount() == NULL || iMount->LocalDrive()->Mount() == iMount); |
52 ASSERT(iMount->LocalDrive()->Mount() == NULL || iMount->LocalDrive()->Mount() == iMount); |
53 iMount->LocalDrive()->SetMount(NULL); |
53 iMount->LocalDrive()->SetMount(NULL); |
54 } |
54 } |
55 |
|
56 iMount = NULL; |
55 iMount = NULL; |
57 } |
56 } |
58 |
57 |
59 //--------------------------------------------------------------------------------------------------------------------------------------- |
58 //--------------------------------------------------------------------------------------------------------------------------------------- |
60 |
59 |
549 EnterCriticalSection(); |
548 EnterCriticalSection(); |
550 TInt nRes = iLocalDrive->Read(aPos, aLength, aTrg, aMessage.Handle(), anOffset, aFlag); |
549 TInt nRes = iLocalDrive->Read(aPos, aLength, aTrg, aMessage.Handle(), anOffset, aFlag); |
551 LeaveCriticalSection(); |
550 LeaveCriticalSection(); |
552 return nRes; |
551 return nRes; |
553 } |
552 } |
554 |
553 |
555 TInt TDriveInterface::XProxyDriveWrapper::Read(TInt64 aPos,TInt aLength,TDes8& aTrg) const |
554 TInt TDriveInterface::XProxyDriveWrapper::Read(TInt64 aPos,TInt aLength,TDes8& aTrg) const |
556 { |
555 { |
557 EnterCriticalSection(); |
556 EnterCriticalSection(); |
558 TInt nRes = iLocalDrive->Read(aPos, aLength, aTrg); |
557 TInt nRes = iLocalDrive->Read(aPos, aLength, aTrg); |
559 LeaveCriticalSection(); |
558 LeaveCriticalSection(); |