--- a/appfw/apparchitecture/apgrfx/APGCLI.CPP Thu Sep 02 20:36:53 2010 +0300
+++ b/appfw/apparchitecture/apgrfx/APGCLI.CPP Fri Sep 17 08:30:44 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)