contentstorage/casrv/cawidgetscanner/src/cawidgetstoragehandler.cpp
changeset 119 50e220be30d1
parent 107 b34d53f6acdf
child 125 26079c1bb561
--- a/contentstorage/casrv/cawidgetscanner/src/cawidgetstoragehandler.cpp	Mon Sep 13 13:26:33 2010 +0300
+++ b/contentstorage/casrv/cawidgetscanner/src/cawidgetstoragehandler.cpp	Mon Sep 20 10:22:22 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;
             }