--- a/userlibandfileserver/fileserver/sfat32/sl_drv.cpp Fri Apr 16 16:24:37 2010 +0300
+++ b/userlibandfileserver/fileserver/sfat32/sl_drv.cpp Mon May 03 13:47:38 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 1996-2010 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the License "Eclipse Public License v1.0"
@@ -46,12 +46,11 @@
Close the interface to the media driver
*/
void TDriveInterface::Close()
-{
- if(iMount)
+{
+ if((iMount != NULL) && (iMount->LocalDrive() != NULL))
{
iMount->LocalDrive()->SetMount(NULL);
- }
-
+ }
iMount = NULL;
}