landmarks/locationlandmarks/dbmanclientlib/src/EPos_HPosLmDatabaseInfo.cpp
branchRCL_3
changeset 13 9c303455e256
parent 0 667063e416a2
--- a/landmarks/locationlandmarks/dbmanclientlib/src/EPos_HPosLmDatabaseInfo.cpp	Tue May 11 16:36:36 2010 +0300
+++ b/landmarks/locationlandmarks/dbmanclientlib/src/EPos_HPosLmDatabaseInfo.cpp	Tue May 25 13:09:42 2010 +0300
@@ -254,9 +254,16 @@
                                sizeof(TInt) +
                                aDatabaseUri.Size();
 
+#if defined(__GCCE__)
+  // allocate memory
+    return User::AllocL(_FOFF(HPosLmDatabaseInfo,
+                             iBuffer) + requiredBufferSize * sizeof (typeof(iBuffer)));
+#else
     // allocate memory
     return User::AllocL(_FOFF(HPosLmDatabaseInfo,
-                              iBuffer[requiredBufferSize]));
+                             iBuffer[requiredBufferSize]));
+#endif
+
 
     }