From ea0dd385f097c0e4babeda61f8e3a35942e6b643 Mon Sep 17 00:00:00 2001 From: Seunghwan Lee Date: Thu, 31 Jan 2013 22:01:48 +0900 Subject: [PATCH] Fixed MmsPrintFileInfoForVLD attach count --- plugin/mms_plugin/MmsPluginMessage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/mms_plugin/MmsPluginMessage.cpp b/plugin/mms_plugin/MmsPluginMessage.cpp index 3b0e61c..8797fdd 100755 --- a/plugin/mms_plugin/MmsPluginMessage.cpp +++ b/plugin/mms_plugin/MmsPluginMessage.cpp @@ -1028,7 +1028,7 @@ void MmsPrintFileInfoForVLD(MMS_MESSAGE_DATA_S *pMmsMsg) int attachCnt = _MsgMmsGetAttachCount(pMmsMsg); if (attachCnt > 0) { - for (int i = 0; i < pMmsMsg->pageCnt; i++) { + for (int i = 0; i < pMmsMsg->attachCnt; i++) { MMS_ATTACH_S *pAttach = _MsgMmsGetAttachment(pMmsMsg, i); MSG_MMS_VLD_FILE("[%s], %d", pAttach->szFilePath, MsgGetFileSize(pAttach->szFilePath)); } -- 2.7.4