appfw/apparchitecture/apgrfx/APGCLI.CPP
changeset 69 dcd4152cfe55
parent 29 6a787171e1de
child 81 676b6116ca93
--- 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)