contentstorage/casrv/cawidgetscanner/src/cawidgetstoragehandler.cpp
changeset 124 e36b2f4799c0
parent 109 e0aa398e6810
--- a/contentstorage/casrv/cawidgetscanner/src/cawidgetstoragehandler.cpp	Fri Sep 17 08:32:18 2010 +0300
+++ b/contentstorage/casrv/cawidgetscanner/src/cawidgetstoragehandler.cpp	Mon Oct 04 00:38:31 2010 +0300
@@ -353,12 +353,11 @@
     {
     TBool massStorageNotInUse( ETrue );
     TInt drive;
-    if( DriveInfo::GetDefaultDrive( DriveInfo::EDefaultMassStorage, drive ) ==
-        KErrNone )
+    if( DriveInfo::GetDefaultDrive( 
+            DriveInfo::EDefaultMassStorage, drive ) == KErrNone )
         {
-        TUint status;
-        if( DriveInfo::GetDriveStatus( iFs, drive, status ) == KErrNone &&
-            ( status & DriveInfo::EDriveInUse ) )
+        TVolumeInfo volumeInfo;
+        if( iFs.Volume( volumeInfo, drive ) == KErrNotReady )
             {
             massStorageNotInUse = EFalse;
             }