349 iApplicationInfo ) |
349 iApplicationInfo ) |
350 { |
350 { |
351 stream.AssignLC( aStore, KUidMmsApplicationInfoStream ); // pushes 'stream' to the stack |
351 stream.AssignLC( aStore, KUidMmsApplicationInfoStream ); // pushes 'stream' to the stack |
352 length = ApplicId().Length(); |
352 length = ApplicId().Length(); |
353 stream.WriteInt32L( length ); |
353 stream.WriteInt32L( length ); |
|
354 // Coverty fix, Forward NULL , http://ousrv057/cov.cgi?cid=35556 |
354 if ( length > 0 && iApplicationId ) |
355 if ( length > 0 && iApplicationId ) |
355 { |
356 { |
356 stream << iApplicationId->Des(); |
357 stream << iApplicationId->Des(); |
357 } |
358 } |
358 |
359 |
359 length = ReplyApplicId().Length(); |
360 length = ReplyApplicId().Length(); |
360 stream.WriteInt32L( length ); |
361 stream.WriteInt32L( length ); |
|
362 // Coverty fix, Forward NULL , http://ousrv057/cov.cgi?cid=35559 |
361 if ( length > 0 && iReplyToApplicationId ) |
363 if ( length > 0 && iReplyToApplicationId ) |
362 { |
364 { |
363 stream << iReplyToApplicationId->Des(); |
365 stream << iReplyToApplicationId->Des(); |
364 } |
366 } |
365 |
367 |
366 length = AuxApplicInfo().Length(); |
368 length = AuxApplicInfo().Length(); |
367 stream.WriteInt32L( length ); |
369 stream.WriteInt32L( length ); |
368 if ( length > 0 && iApplicationInfo ) |
370 if ( length > 0 ) |
369 { |
371 { |
370 stream << iApplicationInfo->Des(); |
372 stream << iApplicationInfo->Des(); |
371 } |
373 } |
372 |
374 |
373 stream.CommitL(); |
375 stream.CommitL(); |
385 |
387 |
386 stream.WriteInt32L( iRecommendedRetrievalMode ); |
388 stream.WriteInt32L( iRecommendedRetrievalMode ); |
387 |
389 |
388 length = RecommendedRetrievalModeText().Length(); |
390 length = RecommendedRetrievalModeText().Length(); |
389 stream.WriteInt32L( length ); |
391 stream.WriteInt32L( length ); |
|
392 // Coverty fix, Forward NULL , http://ousrv057/cov.cgi?cid=35557 |
390 if ( length > 0 && iRecommendedRetrievalModeText ) |
393 if ( length > 0 && iRecommendedRetrievalModeText ) |
391 { |
394 { |
392 stream << iRecommendedRetrievalModeText->Des(); |
395 stream << iRecommendedRetrievalModeText->Des(); |
393 } |
396 } |
394 |
397 |
395 length = ReplaceCancelId().Length(); |
398 length = ReplaceCancelId().Length(); |
396 stream.WriteInt32L( length ); |
399 stream.WriteInt32L( length ); |
|
400 // Coverty fix, Forward NULL , http://ousrv057/cov.cgi?cid=35558 |
397 if ( length > 0 && iReplaceCancelId ) |
401 if ( length > 0 && iReplaceCancelId ) |
398 { |
402 { |
399 stream << iReplaceCancelId->Des(); |
403 stream << iReplaceCancelId->Des(); |
400 } |
404 } |
401 |
405 |