fbs/fontandbitmapserver/sfbs/FBSBMP.CPP
branchRCL_3
changeset 21 183e23d95fab
parent 20 25ffed67c7ef
equal deleted inserted replaced
20:25ffed67c7ef 21:183e23d95fab
   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)