e32tools/elf2e32/source/filedump.cpp
changeset 590 360bd6b35136
parent 0 044383f39525
child 666 76dc8e3e7f2e
equal deleted inserted replaced
588:c7c26511138f 590:360bd6b35136
   168 	
   168 	
   169 	if (result > 0)
   169 	if (result > 0)
   170 		return 1;
   170 		return 1;
   171 	else if (result == KErrCorrupt || result == KErrNotSupported)
   171 	else if (result == KErrCorrupt || result == KErrNotSupported)
   172 	{
   172 	{
   173 		throw InvalidE32ImageError(INVALIDE32IMAGEERROR, (char *)afileName);
   173 		throw InvalidE32ImageError(INVALIDE32IMAGEERROR, (char*)afileName);
   174 	}
   174 	}
   175 	else if (result != 0)
   175 	else if (result != 0)
   176 	{
   176 	{
   177 		throw FileError(FILEREADERROR, (char *)afileName);
   177 		throw FileError(FILEREADERROR, (char*)afileName);
   178 	}
   178 	}
   179 
   179 
   180 	int dumpOptions=iParameterListInterface->DumpOptions();
   180 	int dumpOptions=iParameterListInterface->DumpOptions();
   181 	
   181 	
   182 	aE32Imagefile->Dump((TText*)afileName, dumpOptions);
   182 	aE32Imagefile->Dump(afileName, dumpOptions);
   183 	delete aE32Imagefile;
   183 	delete aE32Imagefile;
   184 	return KErrNone;
   184 	return KErrNone;
   185 }
   185 }
   186 
   186