mtpfws/mtpfw/src/cmtpdeltadatamgr.cpp
changeset 29 3ae5cb0b4c02
parent 0 d0791faffa3f
child 47 63cf70d3ecd8
--- a/mtpfws/mtpfw/src/cmtpdeltadatamgr.cpp	Mon May 03 13:19:02 2010 +0300
+++ b/mtpfws/mtpfw/src/cmtpdeltadatamgr.cpp	Fri Jun 25 16:54:01 2010 +0800
@@ -291,7 +291,7 @@
 	TInt64 puidlow = 1;
 	TBuf8<KMTPPuidSize> puidBuffer;
 	
-	for(TInt count=0;count <aMaxArraySize;count++)
+	for(TInt count=0;count <aMaxArraySize && iView.AtRow();count++)
 		{
 		iView.GetL();
 		//Get the data from the current row
@@ -370,7 +370,7 @@
 	TInt64 puidlow = 1;
 	TBuf8<KMTPPuidSize> puidBuffer;
 	
-	for(TInt count=0;count <aMaxArraySize;count++)
+	for(TInt count=0;count <aMaxArraySize && iView.AtRow();count++)
 		{
 
 		iView.GetL();
@@ -442,7 +442,7 @@
 	TInt64 puidlow = 1;
 	TBuf8<KMTPPuidSize> puidBuffer;
 	
-	for(TInt count=0;count <aMaxArraySize;count++)
+	for(TInt count=0;count <aMaxArraySize && iView.AtRow();count++)
 		{
 
 		iView.GetL();
@@ -514,7 +514,7 @@
 	TInt64 puidlow = 1;
 	TBuf8<KMTPPuidSize> puidBuffer;
 	
-	for(TInt count=0;count <aMaxArraySize;count++)
+	for(TInt count=0;count <aMaxArraySize && iView.AtRow();count++)
 		{
 		iView.GetL();
 		//Get the data from the current row