phonebookui/Phonebook/View/src/CPbkFFSCheck.cpp
branchRCL_3
changeset 85 38bb213f60ba
parent 63 f4a778e096c2
equal deleted inserted replaced
74:6b5524b4f673 85:38bb213f60ba
    57     {
    57     {
    58     }
    58     }
    59 
    59 
    60 EXPORT_C TBool CPbkFFSCheck::FFSClCheckL(TInt aBytesToWrite/*=0*/)
    60 EXPORT_C TBool CPbkFFSCheck::FFSClCheckL(TInt aBytesToWrite/*=0*/)
    61     {
    61     {
    62     RFs* rfSession = NULL;
    62     if (SysUtil::FFSSpaceBelowCriticalLevelL(&iConeEnv->FsSession(),aBytesToWrite) ||
    63     if ( iConeEnv )
       
    64         {
       
    65         rfSession = &iConeEnv->FsSession();
       
    66         }
       
    67     if (SysUtil::FFSSpaceBelowCriticalLevelL( rfSession, aBytesToWrite ) ||
       
    68         DebugFailNext())
    63         DebugFailNext())
    69         {
    64         {
    70         // Show not enough memory note
    65         // Show not enough memory note
    71         User::Leave(KErrDiskFull);
    66         User::Leave(KErrDiskFull);
    72         return EFalse;
    67         return EFalse;