browserutilities/downloadmgr/DownloadMgrClntSrv/src/DownloadMgrSrvObject.cpp
changeset 10 a359256acfc6
parent 5 10e98eab6f85
child 26 cb62a4f66ebe
equal deleted inserted replaced
5:10e98eab6f85 10:a359256acfc6
   737     CLOG_ENTERFN( "CDownloadSubSession::SetFileHandleAttributeL" )
   737     CLOG_ENTERFN( "CDownloadSubSession::SetFileHandleAttributeL" )
   738     
   738     
   739     RFile* file = new (ELeave) RFile;
   739     RFile* file = new (ELeave) RFile;
   740     CleanupStack::PushL( file );
   740     CleanupStack::PushL( file );
   741     
   741     
   742     file->AdoptFromClient( Message(), 0, 1 );
   742     User::LeaveIfError( file->AdoptFromClient( Message(), 0, 1 ) );
   743     
   743     
   744     // ownership is passed to the engine
   744     // ownership is passed to the engine
   745     iDownload->SetFileHandleAttributeL( file );
   745     iDownload->SetFileHandleAttributeL( file );
   746     
   746     
   747     CleanupStack::Pop( file );
   747     CleanupStack::Pop( file );