accessoryservices/tspclientmapper/src/tspclientmapperimpl.cpp
branchRCL_3
changeset 10 66ecddbca914
parent 0 4e1aa6a622a0
--- a/accessoryservices/tspclientmapper/src/tspclientmapperimpl.cpp	Tue Apr 27 17:57:16 2010 +0300
+++ b/accessoryservices/tspclientmapper/src/tspclientmapperimpl.cpp	Tue May 11 17:23:24 2010 +0300
@@ -545,10 +545,14 @@
         if ( (TInt)buf().operator[]( i ) != 0 ) // count of registered clients is lost with TFixedArray, so rely on id being different from 0
             {
             COM_TRACE_1( "[TspClientMapperImpl] CTspClientMapperImpl::GetTspTargetClientsL() first client's Pid = %d", (TInt)buf().operator[]( i ) );
-            aPidArray.Append( buf().operator[]( i ) );
-            }
+            returnErr = aPidArray.Append( buf().operator[]( i ) );
+			if ( returnErr != KErrNone )
+				{
+				break;
+				}
+			}
         }
-	COM_TRACE_( "[TspClientMapperImpl] CTspClientMapperImpl::GetTspTargetClientsL() - return" );
+	COM_TRACE_1 ( "[TspClientMapperImpl] CTspClientMapperImpl::GetTspTargetClientsL() - returnErr: %d", returnErr );
 	return returnErr;
 	
 	}