mtpfws/mtpfw/datatypes/src/cmtptypefile.cpp
branchRCL_3
changeset 6 ef55b168cedb
parent 4 60a94a45d437
child 12 523717cdb0ad
--- a/mtpfws/mtpfw/datatypes/src/cmtptypefile.cpp	Wed Apr 14 16:49:36 2010 +0300
+++ b/mtpfws/mtpfw/datatypes/src/cmtptypefile.cpp	Tue Apr 27 17:30:23 2010 +0300
@@ -197,11 +197,20 @@
     
     //Read the threshold value from Central Repository and check against it
     CRepository* repository(NULL);
-    TInt thresholdValue(0);
+    TInt64 thresholdValue(0);
     TRAPD(err,repository = CRepository::NewL(KCRUidUiklaf));
     if (err == KErrNone)
         {
-        if (driveNo == EDriveC)
+        if (driveNo == EDriveE || driveNo == EDriveF)
+            {
+            TInt warningValue(0);
+            err = repository->Get(KUikOODDiskFreeSpaceWarningNoteLevelMassMemory,warningValue);
+            if (err == KErrNone)
+                {
+                thresholdValue = warningValue + KFreeSpaceExtraReserved;
+                }
+            }
+        else
             {
             TInt warningUsagePercent(0);
             err = repository->Get(KUikOODDiskFreeSpaceWarningNoteLevel,warningUsagePercent);
@@ -211,14 +220,7 @@
                     + KFreeSpaceExtraReserved;
                 }
             }
-        else 
-            {
-            err = repository->Get(KUikOODDiskFreeSpaceWarningNoteLevelMassMemory,thresholdValue);
-            if (err == KErrNone)
-                {
-                thresholdValue += KFreeSpaceExtraReserved;
-                }
-            }
+        
         delete repository;
         }