Fixed MmsPrintFileInfoForVLD attach count
authorSeunghwan Lee <sh.cat.lee@samsung.com>
Thu, 31 Jan 2013 13:01:48 +0000 (22:01 +0900)
committerSeunghwan Lee <sh.cat.lee@samsung.com>
Thu, 31 Jan 2013 13:01:48 +0000 (22:01 +0900)
plugin/mms_plugin/MmsPluginMessage.cpp

index 3b0e61c..8797fdd 100755 (executable)
@@ -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));
                }