userlibandfileserver/fileserver/sfat32/sl_drv.cpp
branchRCL_3
changeset 22 2f92ad2dc5db
parent 19 4a8fed1c0ef6
child 36 bbf8bed59bcb
equal deleted inserted replaced
21:e7d2d738d3c2 22:2f92ad2dc5db
     1 // Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1996-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     4 // under the terms of the License "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    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)
    50 	 if((iMount != NULL) && (iMount->LocalDrive() != NULL))
    51 		{
    51 		{
    52 		iMount->LocalDrive()->SetMount(NULL);
    52 		iMount->LocalDrive()->SetMount(NULL);
    53         }
    53         }
    54 
    54 
    55      iMount = NULL;
    55      iMount = NULL;