equal
deleted
inserted
replaced
2103 TInt returnValue=SendReceiveWithReconnect(EAppListUpdatedAppsInfo,TIpcArgs(&ptr, &pckg)); |
2103 TInt returnValue=SendReceiveWithReconnect(EAppListUpdatedAppsInfo,TIpcArgs(&ptr, &pckg)); |
2104 |
2104 |
2105 //If the size of the buffer is not enough expand it to required size and pass it again. |
2105 //If the size of the buffer is not enough expand it to required size and pass it again. |
2106 if(returnValue==KErrOverflow) |
2106 if(returnValue==KErrOverflow) |
2107 { |
2107 { |
2108 buffer->ExpandL(0, sizeRequired); |
2108 sizeRequired=pckg(); |
2109 returnValue=SendReceiveWithReconnect(EAppListUpdatedAppsInfo,TIpcArgs(&ptr, &pckg)); |
2109 buffer->ResizeL(sizeRequired); |
|
2110 TPtr8 newPtr=buffer->Ptr(0); |
|
2111 returnValue=SendReceiveWithReconnect(EAppListUpdatedAppsInfo,TIpcArgs(&newPtr, &pckg)); |
2110 } |
2112 } |
2111 |
2113 |
2112 if(returnValue==KErrNone) |
2114 if(returnValue==KErrNone) |
2113 { |
2115 { |
2114 RBufReadStream readStream; |
2116 RBufReadStream readStream; |