--- a/lafagnosticuifoundation/bmpanimation/tef/Tanctl.cpp Tue Aug 31 15:28:30 2010 +0300
+++ b/lafagnosticuifoundation/bmpanimation/tef/Tanctl.cpp Wed Sep 01 12:16:19 2010 +0100
@@ -134,11 +134,14 @@
const TInt maskId = aFramesReader.ReadInt16();
if (bmpId >= 0)
{
- CFbsBitmap* bitmap = iEikonEnv->CreateBitmapL(aFileName, bmpId);
+ // Create a bitmap with no error dialog - the 3rd argument of CEikonEnv::CreateBitmapL is to decide whether
+ // or not to show a error dialog on failure. With this option, it leaves with KErrExtendedWkithText if the creation of
+ // bitmap fails. For this test we do not need this error dialog and we expect the raw error code (i.e. KErrNoMemory).
+ CFbsBitmap* bitmap = iEikonEnv->CreateBitmapL(aFileName, bmpId, EFalse);
frameData->SetBitmap(bitmap);
if (maskId >= 0)
{
- CFbsBitmap* mask = iEikonEnv->CreateBitmapL(aFileName, maskId);
+ CFbsBitmap* mask = iEikonEnv->CreateBitmapL(aFileName, maskId, EFalse);
frameData->SetMask(mask);
}
}