diff -r 224b21efc2d4 -r 9352913932ef appfw/apparchitecture/apgrfx/APGCLI.CPP --- a/appfw/apparchitecture/apgrfx/APGCLI.CPP Fri Aug 20 13:36:26 2010 +0300 +++ b/appfw/apparchitecture/apgrfx/APGCLI.CPP Fri Sep 03 16:56:10 2010 +0300 @@ -2105,8 +2105,10 @@ //If the size of the buffer is not enough expand it to required size and pass it again. if(returnValue==KErrOverflow) { - buffer->ExpandL(0, sizeRequired); - returnValue=SendReceiveWithReconnect(EAppListUpdatedAppsInfo,TIpcArgs(&ptr, &pckg)); + sizeRequired=pckg(); + buffer->ResizeL(sizeRequired); + TPtr8 newPtr=buffer->Ptr(0); + returnValue=SendReceiveWithReconnect(EAppListUpdatedAppsInfo,TIpcArgs(&newPtr, &pckg)); } if(returnValue==KErrNone)