phonebookui/Phonebook/View/src/CPbkFFSCheck.cpp
branchRCL_3
changeset 58 d4f567ce2e7c
parent 0 e686773b3f54
child 64 c1e8ba0c2b16
equal deleted inserted replaced
57:2666d9724c76 58:d4f567ce2e7c
    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     if (SysUtil::FFSSpaceBelowCriticalLevelL(&iConeEnv->FsSession(),aBytesToWrite) ||
    62     RFs* rfSession = NULL;
       
    63     if ( iConeEnv )
       
    64         {
       
    65         rfSession = &iConeEnv->FsSession();
       
    66         }
       
    67     if (SysUtil::FFSSpaceBelowCriticalLevelL( rfSession, aBytesToWrite ) ||
    63         DebugFailNext())
    68         DebugFailNext())
    64         {
    69         {
    65         // Show not enough memory note
    70         // Show not enough memory note
    66         User::Leave(KErrDiskFull);
    71         User::Leave(KErrDiskFull);
    67         return EFalse;
    72         return EFalse;