fbs/fontandbitmapserver/sfbs/FBSBMP.CPP
branchRCL_3
changeset 19 bbf46f59e123
parent 18 57c618273d5c
child 20 25ffed67c7ef
equal deleted inserted replaced
18:57c618273d5c 19:bbf46f59e123
    21 #include "fbsdefs.h"
    21 #include "fbsdefs.h"
    22 #include "UTILS.H"
    22 #include "UTILS.H"
    23 #include "fbshelper.h"
    23 #include "fbshelper.h"
    24 #include "fbsrasterizer.h"
    24 #include "fbsrasterizer.h"
    25 #include "BitwiseBitmap.inl"
    25 #include "BitwiseBitmap.inl"
    26 #include "fbsmessage.h"
    26 #include "FbsMessage.H"
    27 #include "bitmapconst.h"
    27 #include "bitmapconst.h"
    28 #include "OstTraceDefinitions.h"
    28 #include "OstTraceDefinitions.h"
    29 #include "fbstrace.h"
    29 #include "fbstrace.h"
    30 #ifdef OST_TRACE_COMPILER_IN_USE
    30 #ifdef OST_TRACE_COMPILER_IN_USE
    31 #include "FBSBMPTraces.h"
    31 #include "FBSBMPTraces.h"
   567         TUint32* rompointer = NULL;
   567         TUint32* rompointer = NULL;
   568         //access using filename has the advantage of using rom address lookup cache
   568         //access using filename has the advantage of using rom address lookup cache
   569         IsFileInRom(aFileName, rompointer);
   569         IsFileInRom(aFileName, rompointer);
   570         TBool romPointerValid;
   570         TBool romPointerValid;
   571         err = DoLoadFromRom(rompointer, aId, aFileOffset, romPointerValid);
   571         err = DoLoadFromRom(rompointer, aId, aFileOffset, romPointerValid);
   572         if(romPointerValid)
   572         if(!romPointerValid)
   573             {
       
   574             FBS_OST(OstTrace1( TRACE_ERROR, CFBSBITMAP_LOAD2_ERROR2, "! this=0x%08x; romPointerValid", (TUint)this);)
       
   575             err = KErrCouldNotConnect;
       
   576             }
       
   577         else
       
   578             {
   573             {
   579             _LIT(KResourcePath, "?:\\Resource\\*");
   574             _LIT(KResourcePath, "?:\\Resource\\*");
   580             TInt match = aFileName.MatchF(KResourcePath);
   575             TInt match = aFileName.MatchF(KResourcePath);
   581             //if the file is in the resource directory we don't need to check capabilities and the file can just be opened on the server side.
   576             //if the file is in the resource directory we don't need to check capabilities and the file can just be opened on the server side.
   582             if (match == 0)
   577             if (match == 0)