diff -r c1f20ce4abcf -r 3e88ff8f41d5 userlibandfileserver/fileserver/sfat32/sl_drv.cpp --- a/userlibandfileserver/fileserver/sfat32/sl_drv.cpp Tue Aug 31 16:34:26 2010 +0300 +++ b/userlibandfileserver/fileserver/sfat32/sl_drv.cpp Wed Sep 01 12:34:56 2010 +0100 @@ -46,12 +46,13 @@ Close the interface to the media driver */ void TDriveInterface::Close() -{ +{ if((iMount != NULL) && (iMount->LocalDrive() != NULL)) { ASSERT(iMount->LocalDrive()->Mount() == NULL || iMount->LocalDrive()->Mount() == iMount); iMount->LocalDrive()->SetMount(NULL); - } + } + iMount = NULL; } @@ -550,7 +551,7 @@ LeaveCriticalSection(); return nRes; } - + TInt TDriveInterface::XProxyDriveWrapper::Read(TInt64 aPos,TInt aLength,TDes8& aTrg) const { EnterCriticalSection();