--- a/localconnectivityservice/obexreceiveservices/bip/src/BIPController.cpp Tue Sep 14 22:59:42 2010 +0300
+++ b/localconnectivityservice/obexreceiveservices/bip/src/BIPController.cpp Wed Oct 13 15:32:36 2010 +0300
@@ -293,22 +293,8 @@
if (iBTObject)
{
- if(iBTTransferState == ETransferPutDiskError)
- {
- return KErrDiskFull;
- }
-
- if(iBTObject->Name().Length() > KMaxFileName)
- {
- TRACE_INFO( _L( "[oppreceiveservice] COPPController: PutPacketIndication truncating name of file being received\t" ) );
- TRAPD(err, iBTObject->SetNameL(iBTObject->Name().Left(KMaxFileName)));
- if(err != KErrNone)
- {
- return KErrAccessDenied;
- }
- }
+ iTotalSizeByte = iBTObject->Length(); // get size of receiving file
iReceivingFileName = iBTObject->Name(); // get name of receiving file
- iTotalSizeByte = iBTObject->Length(); // get size of receiving file
// Check that capacity is suitable as soon as possible
if(!iLengthHeaderReceived && iTotalSizeByte > 0)
@@ -326,8 +312,14 @@
return KErrDiskFull;
}
}
-
-
+ if(iBTObject->Name().Length() > KMaxFileName)
+ {
+ return KErrAccessDenied;
+ }
+ if(iBTTransferState == ETransferPutDiskError)
+ {
+ return KErrDiskFull;
+ }
// successfully received put packet if we reached here
iBTTransferState = ETransferPut;