--- 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;
}